From 5ba9b3cbcf1c270d4914d4918615e95ca15a6bb3 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 21 Jun 2023 19:36:55 +0200 Subject: [PATCH] fix --- src/de/p1st/monitor/warn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/p1st/monitor/warn.py b/src/de/p1st/monitor/warn.py index dda402a..a98af61 100644 --- a/src/de/p1st/monitor/warn.py +++ b/src/de/p1st/monitor/warn.py @@ -67,9 +67,9 @@ class WarnMessage: def prefix(self) -> str: if self.level == WarnLevel.NONE: raise ValueError() - if self.level > WarnLevel.HIGH: + if self.level > WarnLevel.NORMAL: return f'[CRITICAL] {self.date}: ' - return f'{self.date}:' + return f'{self.date}: ' def file(self) -> TextIO: if self.level == WarnLevel.NONE: