Commit ed85f669 authored by ale's avatar ale

do not display facility/severity if not present

parent 7d686da7
......@@ -79,4 +79,4 @@ def format_log(log):
stamp = datetime.fromtimestamp(log['timestamp'] / 1000000.0)
return '%s %s %s.%s %s: %s\n' % (
stamp.isoformat(), log['host'],
log['facility'], log['severity'], tag, log['msg'])
log.get('facility', '<none>'), log.get('severity', '<none>'), tag, log['msg'])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment