Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Fix unicode audit logging
Browse files Browse the repository at this point in the history
  • Loading branch information
beevee committed Sep 5, 2016
1 parent 82c6fbe commit 38cc518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moira/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def decorator(*args, **kwargs):
deletions = [(k, existing[k]) for k in existing if k not in source or source[k] != existing[k]]
audit_log.info("{request.login}\t{request.method}\t{request.uri}", request=request)
for key, add in additions:
audit_log.info("\t+ {key}:{add}", key=key, add=add)
audit_log.info("\t+ {key}:{add!r}", key=key, add=add)
for key, deletion in deletions:
audit_log.info("\t- {key}:{deletion}", key=key, deletion=deletion)
audit_log.info("\t- {key}:{deletion!r}", key=key, deletion=deletion)
for a in ['request', 'get_existing']:
if a in kwargs:
del kwargs[a]
Expand Down

0 comments on commit 38cc518

Please sign in to comment.