update logging formatter handling for consistent behavior with error messsages
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
This commit is contained in:
committed by
Karl W. Schulz
parent
04c0c8ad46
commit
69af2ffc83
+2
-2
@@ -51,9 +51,9 @@ def demarcate(function):
|
||||
|
||||
def console_error(*argv, exit=True):
|
||||
if len(argv) > 1:
|
||||
logging.error("ERROR: " + f"[{argv[0]}] {argv[1]}")
|
||||
logging.error(f"[{argv[0]}] {argv[1]}")
|
||||
else:
|
||||
logging.error("ERROR: " + f"{argv[0]}")
|
||||
logging.error(f"{argv[0]}")
|
||||
if exit:
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user