add ANY search option to dump all tasks

This commit is contained in:
Seth Vidal 2013-07-04 17:39:31 +00:00
parent 2ec45fb97b
commit e81e17df7d

View file

@ -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: