redirect error logs to stderr
This commit is contained in:
parent
b269140b47
commit
6b32628f03
1 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
"""
|
||||
Everything related to logging
|
||||
"""
|
||||
|
||||
|
||||
# https://stackoverflow.com/a/33206814/12979111
|
||||
|
||||
RESET = "\033[0m"
|
||||
|
@ -33,7 +38,7 @@ def warn(msg: str):
|
|||
|
||||
|
||||
def error(msg: str):
|
||||
print(f" {RED}{BOLD} ERROR | {msg}{RESET}")
|
||||
print(f" {RED}{BOLD} ERROR | {msg}{RESET}", file=sys.stderr)
|
||||
|
||||
|
||||
def title(msg: str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue