From 3e1683064cffb693cdaf549e40095449000302e5 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 24 Mar 2014 14:26:36 -0700 Subject: [PATCH] internal: cleaner fix for binary gibberish in logs Signed-off-by: Josh Durgin --- teuthology/task/internal.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 00b179a224..d4df0b45ad 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -488,13 +488,9 @@ kern.* -{adir}/syslog/kern.log;RSYSLOG_FileFormat log.debug('Checking %s', remote.name) r = remote.run( args=[ - 'cat', - run.Raw('{adir}/syslog/*.log'.format(adir=archive_dir)), - run.Raw('|'), - 'tr', '[\\000-\\011\\013-\\037\\177-\\377]', '.', - run.Raw('|'), - 'egrep', + 'egrep', '--binary-files=text', '\\bBUG\\b|\\bINFO\\b|\\bDEADLOCK\\b', + run.Raw('{adir}/syslog/*.log'.format(adir=archive_dir)), run.Raw('|'), 'grep', '-v', 'task .* blocked for more than .* seconds', run.Raw('|'), -- 2.39.5