add ANY search option to dump all tasks
This commit is contained in:
parent
2ec45fb97b
commit
e81e17df7d
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ def search_logs(opts, logfiles):
|
|||
timestamp = os.path.basename(os.path.dirname(fn))
|
||||
for line in open(fn):
|
||||
things = line.split('\t')
|
||||
if things[2] in opts.search_terms:
|
||||
if things[2] in opts.search_terms or 'ANY' in opts.search_terms:
|
||||
slurp = json.loads(things[4])
|
||||
msg += '%s\t%s\t%s\t%s\t%s\t%s' % (timestamp, hostname, things[0], things[1], things[2], things[3])
|
||||
if not opts.verbose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue