log: fix potential import issue
This commit is contained in:
parent
efa3f7a3e1
commit
75b0114b70
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
Everything related to logging
|
Everything related to logging
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from sys import stderr
|
||||||
|
|
||||||
|
|
||||||
# https://stackoverflow.com/a/33206814/12979111
|
# https://stackoverflow.com/a/33206814/12979111
|
||||||
|
|
||||||
|
@ -26,4 +28,4 @@ def warn(msg: str):
|
||||||
|
|
||||||
|
|
||||||
def error(msg: str):
|
def error(msg: str):
|
||||||
print(f" {RED}{BOLD} ERROR | {msg}{RESET}", file=sys.stderr)
|
print(f" {RED}{BOLD} ERROR | {msg}{RESET}", file=stderr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue