retention_policy: On unrecognized events, print the timestamp to full precision

(imported from commit 0f5908e0602fa8be7dea3d9e3b1ecbc437531df9)
This commit is contained in:
Keegan McAllister 2013-02-06 18:11:36 -05:00
parent d80dd021f1
commit a8ffa339de
1 changed files with 2 additions and 1 deletions

View File

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