Move error logging to util.py

Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
colramos-amd
2023-12-11 09:55:15 -06:00
committed by Karl W. Schulz
parent eaae69e2a6
commit b99d448d3b
8 changed files with 33 additions and 49 deletions
+6
View File
@@ -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)