mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 09:31:35 +03:00
Emit log messages as 'message' not 'log'.
This commit is contained in:
parent
4ce05ec171
commit
6543296467
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue