summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-16 15:44:23 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-16 15:44:23 +0000
commit99f8f078de744b995918e94781252ec2e11e5237 (patch)
tree766300604daa8a506dc8622dfdaf107fcafc579a /synapse/handlers/message.py
parentfix delete_existing for _persist_events (#6300) (diff)
parentRemove usage of deprecated logger.warn method from codebase (#6271) (diff)
downloadsynapse-99f8f078de744b995918e94781252ec2e11e5237.tar.xz
Remove usage of deprecated logger.warn method from codebase (#6271)
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 092fcf9809..c2eba81980 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -688,7 +688,7 @@ class EventCreationHandler(object):
         try:
             yield self.auth.check_from_context(room_version, event, context)
         except AuthError as err:
-            logger.warn("Denying new event %r because %s", event, err)
+            logger.warning("Denying new event %r because %s", event, err)
             raise err
 
         # Ensure that we can round trip before trying to persist in db