Skip to content

Commit

Permalink
Merge pull request #368 from projectcaluma/no_stacktrace_on_reconnect
Browse files Browse the repository at this point in the history
fix: do not log stacktrace on db reconnect
  • Loading branch information
winged authored Oct 31, 2024
2 parents 2efcf31 + 8f0d753 commit 14c11cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions manabi/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,7 @@ def execute(self, *args, **kwargs):
try:
self._cursor.execute(*args, **kwargs)
except (InterfaceError, OperationalError):
_logger.error(
f"Postgres connection lost, reconnecting. {''.join(traceback.format_stack())}"
)
_logger.warn("Postgres connection lost, reconnecting")

self.connect()
self._cursor.execute(*args, **kwargs)
Expand Down

0 comments on commit 14c11cd

Please sign in to comment.