summary refs log tree commit diff
diff options
context:
space:
mode:
-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