task_wrapper exception logger now specifies the task name

This commit is contained in:
DevilXD committed 2024-07-04 11:52:14 +02:00
1 parent dc488603c3
commit 38fd7588d4
1 file changed
+1 -1
+1 -1
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