From: Dan Mick Date: Thu, 6 Jun 2013 21:57:20 +0000 (-0700) Subject: ceph: error and verbose message improvement X-Git-Tag: v0.65~136^2^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=444668159bf6be2e30bd1b55a514f5ab2606649c;p=ceph.git ceph: error and verbose message improvement Signed-off-by: Dan Mick --- diff --git a/src/ceph b/src/ceph index 3b8dcc0cc2a2..11e63b51dc9d 100755 --- a/src/ceph +++ b/src/ceph @@ -1378,7 +1378,8 @@ def main(): print >> sys.stderr, 'Cluster connection aborted' return 1 except Exception as e: - print >> sys.stderr, 'Error connecting to cluster: {0}'.format(e) + print >> sys.stderr, 'Error connecting to cluster: {0}'.\ + format(e.__class__.__name__) return 1 if parsed_args.help or parsed_args.help_all: @@ -1452,6 +1453,8 @@ def main(): prefix='get_command_descriptions') if ret == -errno.EINVAL: # send command to old monitor + if verbose: + print '{0} to old monitor'.format(' '.join(childargs)) ret, outbuf, outs = cluster_handle.mon_command(' '.join(childargs), inbuf) elif ret: