From: Loic Dachary Date: Wed, 9 Dec 2015 20:53:44 +0000 (+0100) Subject: misc: truncating shell output to 1024 per line X-Git-Tag: 1.1.0~732^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f2d79bdfe0a6957d0f28c58157dcef0b8d51f58;p=teuthology.git misc: truncating shell output to 1024 per line 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 --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 6280bccc..3355814d 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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