mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
utils/log: log_error marks Exception as logged.
Mark the Exception is logged inside log_error, to prevent it form being logged repeatedly if re-raised.
This commit is contained in:
parent
67eca23ef7
commit
c29b1c8b23
@ -165,6 +165,8 @@ def log_error(e, logger, critical=False):
|
||||
log_func(tb)
|
||||
log_func('{}({})'.format(e.__class__.__name__, e))
|
||||
|
||||
e.logged = True
|
||||
|
||||
|
||||
class ErrorSignalHandler(logging.Handler):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user