]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: print traceback only when debug switch is on
authorRishabh Dave <ridave@redhat.com>
Tue, 1 Oct 2019 07:01:53 +0000 (12:31 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 2 Nov 2019 08:48:07 +0000 (14:18 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/tools/cephfs/cephfs-shell

index 34d5366a507d55f680ca437a90414eda9946fe93..537b61656a1fe0f609ad51b97f8bda7b68b31986 100755 (executable)
@@ -415,7 +415,8 @@ class CephFSShell(Cmd):
                 traceback.print_exc(file=sys.stdout)
         except Exception as e:
             perror(e)
-            traceback.print_exc(file=sys.stdout)
+            if shell.debug:
+                traceback.print_exc(file=sys.stdout)
 
     class path_to_bytes(argparse.Action):
         def __call__(self, parser, namespace, values, option_string=None):