summary refs log tree commit diff
path: root/synapse/logging/_structured.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-01 15:07:33 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-01 15:07:33 +0100
commit8a8d01d732476b333d455583e39a43f2e3603b13 (patch)
tree0fc172389db743b5be38d3c43e42fae7d01fef76 /synapse/logging/_structured.py
parentRevert "Temporary fix to ensure kde can contact matrix.org if stuff breaks" (diff)
parentMerge tag 'v1.21.0rc1' into develop (diff)
downloadsynapse-8a8d01d732476b333d455583e39a43f2e3603b13.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/logging/_structured.py')
-rw-r--r--synapse/logging/_structured.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/synapse/logging/_structured.py b/synapse/logging/_structured.py

index 144506c8f2..0fc2ea609e 100644 --- a/synapse/logging/_structured.py +++ b/synapse/logging/_structured.py
@@ -12,7 +12,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - import logging import os.path import sys @@ -89,14 +88,7 @@ class LogContextObserver: context = current_context() # Copy the context information to the log event. - if context is not None: - context.copy_to_twisted_log_entry(event) - else: - # If there's no logging context, not even the root one, we might be - # starting up or it might be from non-Synapse code. Log it as if it - # came from the root logger. - event["request"] = None - event["scope"] = None + context.copy_to_twisted_log_entry(event) self.observer(event)