remove datetime from printed WarnMessage

This commit is contained in:
Daniel Langbein 2025-01-08 16:50:08 +01:00
parent 7c57eba12a
commit 582a41beec
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 3 additions and 4 deletions

View File

@ -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():

View File

@ -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''