mirror of
https://codeberg.org/privacy1st/de-p1st-monitor
synced 2024-12-21 23:06:04 +01:00
fix
This commit is contained in:
parent
3908d5129e
commit
5ba9b3cbcf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user