Skip to content

Commit

Permalink
Log with level error when losing connection to Zino
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Jun 7, 2024
1 parent 7606e6a commit 4ac9a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/howitz/error_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def handle_403(e):

def handle_lost_connection(e):
if isinstance(e, BrokenPipeError):
current_app.logger.exception("Lost connection to Zino server: %s", e)
current_app.logger.error("Lost connection to Zino server: %s", e)
else:
current_app.logger.exception("Lost connection to Zino server: %s", e.args[0])
current_app.logger.error("Lost connection to Zino server: %s", e.args[0])

if current_user.is_authenticated: # Re-connect to Zino with existing credentials and inform user that there was an error via alert pop-up
if current_app.event_manager.is_connected:
Expand Down

0 comments on commit 4ac9a48

Please sign in to comment.