]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add profile log line to Popen wrappers
authorMichael Fritch <mfritch@suse.com>
Fri, 12 Jun 2020 13:59:55 +0000 (07:59 -0600)
committerMichael Fritch <mfritch@suse.com>
Fri, 12 Jun 2020 13:59:55 +0000 (07:59 -0600)
add debug log line to profile the Popen wrapper read loop
exec runtime, exitcode, stop, fds to read, etc.

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 1a7adcc9359d28d27d0366f74a3764a38d52ed55..3266c829f920f4801c956d536225a99cfffc8244 100755 (executable)
@@ -814,6 +814,8 @@ def call(command,  # type: List[str]
                     assert False
             except (IOError, OSError):
                 pass
+        logger.debug(desc + ':profile rt=%s, stop=%s, exit=%s, reads=%s'
+                % (time.time()-start_time, stop, process.poll(), reads))
 
     returncode = process.wait()