From: Michael Fritch Date: Fri, 12 Jun 2020 13:59:55 +0000 (-0600) Subject: cephadm: add profile log line to Popen wrappers X-Git-Tag: v15.2.5~147^2~50 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da4ffebfcf01b9728ca41c3de1249714e7d4b4fe;p=ceph.git cephadm: add profile log line to Popen wrappers add debug log line to profile the Popen wrapper read loop exec runtime, exitcode, stop, fds to read, etc. Signed-off-by: Michael Fritch (cherry picked from commit 49887ab4554576249fe6c205a46bff2a674b5ec2) --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index d00a0aee27b5..d8f16ef0d3df 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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()