]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc: truncating shell output to 1024 per line 743/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 9 Dec 2015 20:53:44 +0000 (21:53 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 9 Dec 2015 20:56:09 +0000 (21:56 +0100)
Truncating by default to 128 frequently trims useful debug
information. Set the default to 1024: the intent is to avoid huge logs
when a json output is repeatedly returning large (>10k) payloads.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/misc.py

index 6280bccc0401bb7cdc20abeb7e5311c1c75fe857..3355814d293e2b740b3d402698319e4c8d6ae05a 100644 (file)
@@ -1282,7 +1282,7 @@ def is_in_dict(searchkey, searchval, d):
         return searchval == val
 
 
-def sh(command, log_limit=128):
+def sh(command, log_limit=1024):
     """
     Run the shell command and return the output in ascii (stderr and
     stdout).  If the command fails, raise an exception. The command