task_wrapper exception logger now specifies the task name
This commit is contained in:
1 parent
dc488603c3
commit
38fd7588d4
1 file changed
+1
-1
@@ -140,7 +140,7 @@ def task_wrapper(
|
|||||||
except (ExitRequest, ReloadRequest):
|
except (ExitRequest, ReloadRequest):
|
||||||
pass
|
pass
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Exception in task")
|
logger.exception(f"Exception in {afunc.__name__} task")
|
||||||
raise # raise up to the wrapping task
|
raise # raise up to the wrapping task
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user