mirror of
https://codeberg.org/privacy1st/de-p1st-monitor
synced 2024-11-23 19:49:32 +01:00
always print warnings to stderr
This commit is contained in:
parent
97c0ab61f0
commit
78870e8b2c
@ -48,7 +48,7 @@ def log():
|
|||||||
logger_read_exs = []
|
logger_read_exs = []
|
||||||
logger_warnings = 0
|
logger_warnings = 0
|
||||||
for logger_ct, logger in enumerate(loggers, start=1):
|
for logger_ct, logger in enumerate(loggers, start=1):
|
||||||
print(f'Running logger {logger_ct}/{len(loggers)} ...')
|
# print(f'Running logger {logger_ct}/{len(loggers)} ...')
|
||||||
try:
|
try:
|
||||||
logger.update()
|
logger.update()
|
||||||
except LoggerReadEx as e:
|
except LoggerReadEx as e:
|
||||||
|
@ -76,6 +76,4 @@ class WarnMessage:
|
|||||||
def file(self) -> TextIO:
|
def file(self) -> TextIO:
|
||||||
if self.level == WarnLevel.NONE:
|
if self.level == WarnLevel.NONE:
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
if self.level >= WarnLevel.NORMAL:
|
return sys.stderr
|
||||||
return sys.stderr
|
|
||||||
return sys.stdout
|
|
||||||
|
Loading…
Reference in New Issue
Block a user