diff options
author | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-12-13 10:50:18 +0000 |
---|---|---|
committer | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-12-13 10:50:18 +0000 |
commit | 6543296467656a99a9934c6922235a6f1feb624d (patch) | |
tree | df3c31652d8c6f89e7a76214a2965ac6983ac0da | |
parent | Adjust the sytest blacklist for worker mode (#6538) (diff) | |
download | synapse-michaelkaye/configure_structured_logging.tar.xz |
Emit log messages as 'message' not 'log'. github/michaelkaye/configure_structured_logging michaelkaye/configure_structured_logging
-rw-r--r-- | synapse/logging/_terse_json.py | 4 |
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 |