summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/e2e_keys.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py
index 352c8ee93b..ff32fdaccc 100644
--- a/synapse/handlers/e2e_keys.py
+++ b/synapse/handlers/e2e_keys.py
@@ -928,7 +928,7 @@ class E2eKeysHandler(object):
             user_id, key_type, from_user_id
         )
         if key is None:
-            logger.error("no %s key found for %s", key_type, user_id)
+            logger.debug("no %s key found for %s", key_type, user_id)
             raise NotFoundError("No %s key found for %s" % (key_type, user_id))
         key_id, verify_key = get_verify_key_from_cross_signing_key(key)
         return key, key_id, verify_key
@@ -986,7 +986,7 @@ def _check_device_signature(user_id, verify_key, signed_device, stored_device):
         k: v for k, v in stored_device.items() if k not in ["signatures", "unsigned"]
     }
     if stripped_signed_device != stripped_stored_device:
-        logger.error(
+        logger.debug(
             "upload signatures: key does not match %s vs %s",
             signed_device,
             stored_device,
@@ -996,7 +996,7 @@ def _check_device_signature(user_id, verify_key, signed_device, stored_device):
     try:
         verify_signed_json(signed_device, user_id, verify_key)
     except SignatureVerifyException:
-        logger.error("invalid signature on key")
+        logger.debug("invalid signature on key")
         raise SynapseError(400, "Invalid signature", Codes.INVALID_SIGNATURE)