Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
logging: move message_type out to Type field
Browse files Browse the repository at this point in the history
  • Loading branch information
oremj committed Apr 14, 2015
1 parent 0fc4c08 commit b44ffb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autopush/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def stdout(message):
for key in ["Type", "Severity"]:
if key in message:
msg[key] = message.pop(key)

if "message_type" in message:
msg["Type"] = message.pop("message_type")

msg["Timestamp"] = ts * 1000 * 1000 * 1000
msg["Fields"] = message
msg["EnvVersion"] = "2.0"
Expand Down

0 comments on commit b44ffb0

Please sign in to comment.