summary refs log tree commit diff
path: root/synapse/logging/__init__.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-05-11 11:04:03 +0100
committerGitHub <noreply@github.com>2021-05-11 11:04:03 +0100
commitb378d98c8f93412bc51f0d4b9c4aa2d1701cf523 (patch)
tree9005f9d37f9cf958286dfcf67eb7ac28cc5359f5 /synapse/logging/__init__.py
parentFix `m.room_key_request` to-device messages (#9961) (diff)
downloadsynapse-b378d98c8f93412bc51f0d4b9c4aa2d1701cf523.tar.xz
Add debug logging for issue #9533 (#9959)
Hopefully this will help us track down where to-device messages are getting
lost/delayed.
Diffstat (limited to 'synapse/logging/__init__.py')
-rw-r--r--synapse/logging/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/logging/__init__.py b/synapse/logging/__init__.py
index e00969f8b1..b50a4f95eb 100644
--- a/synapse/logging/__init__.py
+++ b/synapse/logging/__init__.py
@@ -12,8 +12,13 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# These are imported to allow for nicer logging configuration files.
+import logging
+
 from synapse.logging._remote import RemoteHandler
 from synapse.logging._terse_json import JsonFormatter, TerseJsonFormatter
 
+# These are imported to allow for nicer logging configuration files.
 __all__ = ["RemoteHandler", "JsonFormatter", "TerseJsonFormatter"]
+
+# Debug logger for https://github.com/matrix-org/synapse/issues/9533 etc
+issue9533_logger = logging.getLogger("synapse.9533_debug")