Move error logging to util.py
Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
committed by
Karl W. Schulz
parent
eaae69e2a6
commit
b99d448d3b
@@ -47,6 +47,12 @@ def demarcate(function):
|
||||
return result
|
||||
return wrap_function
|
||||
|
||||
def error(message):
|
||||
logging.error("")
|
||||
logging.error("[ERROR]: " + message)
|
||||
logging.error("")
|
||||
sys.exit(1)
|
||||
|
||||
def trace_logger(message, *args, **kwargs):
|
||||
logging.log(logging.TRACE, message, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user