From f427749f20826c28d3ff9823d8b61c733f5c55eb Mon Sep 17 00:00:00 2001 From: "luo.runbing" Date: Mon, 5 Aug 2019 14:42:35 +0800 Subject: [PATCH] pybind/ceph_argparse.py: add verbose output for mgr commands Signed-off-by: luo.runbing --- src/pybind/ceph_argparse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index 933f080c7ca2..5193be803bc6 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -1366,6 +1366,9 @@ def send_command(cluster, target=('mon', ''), cmd=None, inbuf=b'', timeout=0, cluster.osd_command, osdid, cmd, inbuf, timeout=timeout) elif target[0] == 'mgr': + if verbose: + print('submit {0} to {1}'.format(cmd, target[0]), + file=sys.stderr) ret, outbuf, outs = run_in_thread( cluster.mgr_command, cmd, inbuf, timeout=timeout) -- 2.47.3