task_wrapper exception logger now specifies the task name

This commit is contained in:
DevilXD
2024-07-04 11:52:14 +02:00
parent dc488603c3
commit 38fd7588d4

View File

@@ -140,7 +140,7 @@ def task_wrapper(
except (ExitRequest, ReloadRequest):
pass
except Exception:
logger.exception("Exception in task")
logger.exception(f"Exception in {afunc.__name__} task")
raise # raise up to the wrapping task
return wrapper