Skip to content

Commit

Permalink
Fix JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
bitonio committed May 13, 2021
1 parent fab3373 commit 24a853b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libeaa/eventlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_logs(self, drpc_args, logtype=EventType.USER_ACCESS, output=None):
line = "%s\n" % ' '.join([local_time.isoformat(), response['flog']])
if config.json:
result = self._userlog_regexp.search(line)
cli.print(json.dumps(EventLogAPI.userlog_prepjson(result.groupdict())))
output.write(json.dumps(EventLogAPI.userlog_prepjson(result.groupdict())))
else:
output.write(line)
logging.debug("### flog ## %s" % response['flog'])
Expand Down

0 comments on commit 24a853b

Please sign in to comment.