mirror of
https://codeberg.org/privacy1st/de-p1st-monitor
synced 2024-11-24 19:59:33 +01:00
fix
This commit is contained in:
parent
3908d5129e
commit
5ba9b3cbcf
@ -67,9 +67,9 @@ class WarnMessage:
|
|||||||
def prefix(self) -> str:
|
def prefix(self) -> str:
|
||||||
if self.level == WarnLevel.NONE:
|
if self.level == WarnLevel.NONE:
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
if self.level > WarnLevel.HIGH:
|
if self.level > WarnLevel.NORMAL:
|
||||||
return f'[CRITICAL] {self.date}: '
|
return f'[CRITICAL] {self.date}: '
|
||||||
return f'{self.date}:'
|
return f'{self.date}: '
|
||||||
|
|
||||||
def file(self) -> TextIO:
|
def file(self) -> TextIO:
|
||||||
if self.level == WarnLevel.NONE:
|
if self.level == WarnLevel.NONE:
|
||||||
|
Loading…
Reference in New Issue
Block a user