Warn some noisy errors (#4158)

This commit is contained in:
Stanislav Novosad
2025-12-01 19:05:19 -07:00
committed by GitHub
parent 4ac82ec25b
commit d0a9095b0d
2 changed files with 4 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ def get_pylon_email_hash(email: str = Query(...)) -> PylonHash:
secret = settings.PYLON_IDENTITY_VERIFICATION_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)
try:

View File

@@ -275,6 +275,9 @@ class MessageChannel:
except RuntimeError as ex:
if "not connected" in str(ex).lower():
break
except WebSocketDisconnect:
LOG.warning(f"{self.class_name} Disconnected while receiving message from channel", **self.identity)
break
except Exception:
LOG.exception(f"{self.class_name} Failed to receive message from message channel", **self.identity)
break