From 5f2d79bdfe0a6957d0f28c58157dcef0b8d51f58 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 9 Dec 2015 21:53:44 +0100 Subject: [PATCH] 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 --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 6280bccc04..3355814d29 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 -- 2.39.5