mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-07 20:06:04 +08:00
Make error source more explicit
This commit is contained in:
parent
5769605bc2
commit
187bd0c876
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ def catch_exceptions(fn: Callable):
|
|||
except Exception as exc:
|
||||
# pylint: disable=E1101 (no-member)
|
||||
operation = fn.__name__
|
||||
logger.error(f"Function {operation} failed with: {exc}", level="error")
|
||||
logger.error(f"General catcher: Function {operation} failed with: {exc}")
|
||||
logger.error("Trace:", exc_info=True)
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue