mirror of https://github.com/zulip/zulip.git
retention_policy: On unrecognized events, print the timestamp to full precision
(imported from commit 0f5908e0602fa8be7dea3d9e3b1ecbc437531df9)
This commit is contained in:
parent
d80dd021f1
commit
a8ffa339de
|
@ -48,7 +48,8 @@ def should_expunge_from_log(msg, now):
|
|||
user = msg.get('user')
|
||||
if user is None:
|
||||
# Avoid printing the entire message, but give enough information to find it later.
|
||||
print >>sys.stderr, "WARNING: Can't get user for entry at", msg['timestamp']
|
||||
# Print the repr of the timestamp; otherwise it gets rounded!
|
||||
print >>sys.stderr, "WARNING: Can't get user for entry at", repr(msg['timestamp'])
|
||||
return False
|
||||
domain = user.split('@', 1)[1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue