summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2019-12-13 10:50:18 +0000
committerMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2019-12-13 10:50:18 +0000
commit6543296467656a99a9934c6922235a6f1feb624d (patch)
treedf3c31652d8c6f89e7a76214a2965ac6983ac0da
parentAdjust the sytest blacklist for worker mode (#6538) (diff)
downloadsynapse-github/michaelkaye/configure_structured_logging.tar.xz
-rw-r--r--synapse/logging/_terse_json.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/logging/_terse_json.py b/synapse/logging/_terse_json.py
index 03934956f4..d49dccdc08 100644
--- a/synapse/logging/_terse_json.py
+++ b/synapse/logging/_terse_json.py
@@ -76,9 +76,9 @@ def flatten_event(event: dict, metadata: dict, include_time: bool = False):
     # context only given in the log format (e.g. what is being logged) is
     # available.
     if "log_text" in event:
-        new_event["log"] = event["log_text"]
+        new_event["message"] = event["log_text"]
     else:
-        new_event["log"] = event["log_format"]
+        new_event["message"] = event["log_format"]
 
     # We want to include the timestamp when forwarding over the network, but
     # exclude it when we are writing to stdout. This is because the log ingester