summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-09-07 18:24:24 +0100
committerGitHub <noreply@github.com>2016-09-07 18:24:24 +0100
commit3c320c006ccaa984e1a4a46d5d5d2e5e23d11c6e (patch)
treee1d002bbd75f04d4edb2fed68c184eb36717fa05 /synapse/storage
parentMerge pull request #1076 from matrix-org/erikj/state_storage (diff)
parentLog the types and values when failing to store devices (diff)
downloadsynapse-3c320c006ccaa984e1a4a46d5d5d2e5e23d11c6e.tar.xz
Merge pull request #1077 from matrix-org/markjh/device_logging
Log the types and values when failing to store devices
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/devices.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index afd6530cab..17920d4480 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -54,8 +54,12 @@ class DeviceStore(SQLBaseStore):
                 or_ignore=ignore_if_known,
             )
         except Exception as e:
-            logger.error("store_device with device_id=%s failed: %s",
-                         device_id, e)
+            logger.error("store_device with device_id=%s(%r) user_id=%s(%r)"
+                         " display_name=%s(%r) failed: %s",
+                         type(device_id).__name__, device_id,
+                         type(user_id).__name__, user_id,
+                         type(initial_device_display_name).__name__,
+                         initial_device_display_name, e)
             raise StoreError(500, "Problem storing device.")
 
     def get_device(self, user_id, device_id):