mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 12:00:21 +00:00
parent
3fd68d533b
commit
9ea408441f
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue