Warn some noisy errors (#4158)
This commit is contained in:
committed by
GitHub
parent
4ac82ec25b
commit
d0a9095b0d
@@ -21,7 +21,7 @@ def get_pylon_email_hash(email: str = Query(...)) -> PylonHash:
|
|||||||
secret = settings.PYLON_IDENTITY_VERIFICATION_SECRET
|
secret = settings.PYLON_IDENTITY_VERIFICATION_SECRET
|
||||||
|
|
||||||
if not secret:
|
if not secret:
|
||||||
LOG.error("No Pylon identity verification secret", email=email)
|
LOG.warning("No Pylon identity verification secret", email=email)
|
||||||
return PylonHash(hash=no_hash)
|
return PylonHash(hash=no_hash)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -275,6 +275,9 @@ class MessageChannel:
|
|||||||
except RuntimeError as ex:
|
except RuntimeError as ex:
|
||||||
if "not connected" in str(ex).lower():
|
if "not connected" in str(ex).lower():
|
||||||
break
|
break
|
||||||
|
except WebSocketDisconnect:
|
||||||
|
LOG.warning(f"{self.class_name} Disconnected while receiving message from channel", **self.identity)
|
||||||
|
break
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.exception(f"{self.class_name} Failed to receive message from message channel", **self.identity)
|
LOG.exception(f"{self.class_name} Failed to receive message from message channel", **self.identity)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user