Move error logging to util.py
Signed-off-by: colramos-amd <colramos@amd.com>
[ROCm/rocprofiler-compute commit: b99d448d3b]
Этот коммит содержится в:
1 родитель
d4d22af34a
Коммит
8540fde54a
8 files changed
+33
-49
No files matched your search
@@ -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