mirror of
https://github.com/matrix-org/synapse.git
synced 2025-10-12 16:01:14 +02:00
parent
3fd68d533b
commit
9ea408441f
@ -191,6 +191,8 @@ def run_as_background_process(desc, func, *args, **kwargs):
|
||||
|
||||
try:
|
||||
yield func(*args, **kwargs)
|
||||
except Exception:
|
||||
logger.exception("Background process '%s' threw an exception", desc)
|
||||
finally:
|
||||
proc.update_metrics()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user