]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: error and verbose message improvement
authorDan Mick <dan.mick@inktank.com>
Thu, 6 Jun 2013 21:57:20 +0000 (14:57 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 01:46:53 +0000 (18:46 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/ceph

index 3b8dcc0cc2a27cbd2a4f7b376bb41746f989d827..11e63b51dc9d5c62abc86176a9e5d09e03932816 100755 (executable)
--- 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: