Move error logging to util.py

Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
colramos-amd authored and Karl W. Schulz committed 2023-12-11 16:49:06 -06:00
1 vanhempi eaae69e2a6
commit b99d448d3b
8 files changed
+33 -49

No files matched your search

+6
Näytä tiedosto
@@ -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)