Skip to content

Commit

Permalink
LOG SYSEVENT ERRORS BETTER
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Feb 27, 2024
1 parent 3255c03 commit eee3593
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edb/server/tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

from edb import errors
from edb.common import retryloop
from edb.common import debug

from . import args as srvargs
from . import config
Expand Down Expand Up @@ -1310,7 +1311,9 @@ async def signal_sysevent(self, event: str, **kwargs) -> None:

async with self.use_sys_pgcon() as con:
await con.signal_sysevent(event, **kwargs)
except Exception:
except Exception as ex:
print("SYSEVENT ERROR")
debug.dump(ex)
metrics.background_errors.inc(
1.0, self._instance_name, "signal_sysevent"
)
Expand Down

0 comments on commit eee3593

Please sign in to comment.