mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-26 04:02:11 +00:00
host: fix exception message dup under CLI mode.
This commit is contained in:
parent
0e17edace1
commit
af0db8b0ee
1 changed files with 4 additions and 1 deletions
|
@ -546,8 +546,11 @@ def eprint(*args, **kwargs) -> None:
|
||||||
print(*args, file=sys.stderr, **kwargs)
|
print(*args, file=sys.stderr, **kwargs)
|
||||||
|
|
||||||
def utilsLogException(exception_str: str) -> None:
|
def utilsLogException(exception_str: str) -> None:
|
||||||
|
# Always print exception information to the terminal output.
|
||||||
eprint(exception_str)
|
eprint(exception_str)
|
||||||
if g_logger is not None:
|
|
||||||
|
# Only print exception information to our logger if we're not in CLI mode.
|
||||||
|
if (not g_cliMode) and (g_logger is not None):
|
||||||
g_logger.debug(exception_str)
|
g_logger.debug(exception_str)
|
||||||
|
|
||||||
def utilsGetPath(path_arg: str, fallback_path: str, is_file: bool, create: bool = False) -> str:
|
def utilsGetPath(path_arg: str, fallback_path: str, is_file: bool, create: bool = False) -> str:
|
||||||
|
|
Loading…
Reference in a new issue