mirror of
https://codeberg.org/privacy1st/de-p1st-monitor
synced 2025-01-22 02:32:43 +01:00
remove datetime from printed WarnMessage
This commit is contained in:
parent
7c57eba12a
commit
582a41beec
@ -6,7 +6,7 @@ from pathlib import Path
|
|||||||
from de.p1st.monitor.cfg.singleton import init_cfg
|
from de.p1st.monitor.cfg.singleton import init_cfg
|
||||||
from de.p1st.monitor.cfg.loggers import get_loggers
|
from de.p1st.monitor.cfg.loggers import get_loggers
|
||||||
from de.p1st.monitor.logger_ex import LoggerReadEx
|
from de.p1st.monitor.logger_ex import LoggerReadEx
|
||||||
from de.p1st.monitor.print_util import print_err, print_debug
|
from de.p1st.monitor.print_util import print_err
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -74,6 +74,5 @@ class WarnMessage:
|
|||||||
if self.level == WarnLevel.NONE:
|
if self.level == WarnLevel.NONE:
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
if self.level > WarnLevel.NORMAL:
|
if self.level > WarnLevel.NORMAL:
|
||||||
return f'[CRITICAL] {self.date}: '
|
return f'[CRITICAL] '
|
||||||
return f'{self.date}: '
|
return f''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user