]> git-server-git.apps.pok.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)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 14 Jul 2020 09:39:06 +0000 (11:39 +0200)
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>
(cherry picked from commit 49887ab4554576249fe6c205a46bff2a674b5ec2)

src/cephadm/cephadm

index d00a0aee27b53060a0d9392454c8204f1101c565..d8f16ef0d3df1a74b3bb68bb93a928e5dfb54b42 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()