mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-21 07:48:53 +01: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:
@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user