Module: check_mk
Branch: master
Commit: af1f6fff3f2dc2de7465a0fb0254c6789d543fe0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af1f6fff3f2dc2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 7 10:58:20 2012 +0200
FIX: Logwatch handles logs with only OK lines in it correctly in logfile list views
---
ChangeLog | 1 +
web/htdocs/logwatch.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 697321a..0b5956b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
Multisite:
* FIX: fixed filter of recent event views (4 hours didn't catch)
* FIX: convert more buttons to new graphical style
+ * FIX: Logwatch handles logs with only OK lines in it correctly in logfile list
views
Mobile GUI:
* FIX: commands can be executed again
diff --git a/web/htdocs/logwatch.py b/web/htdocs/logwatch.py
index b72b8fc..a3dce57 100644
--- a/web/htdocs/logwatch.py
+++ b/web/htdocs/logwatch.py
@@ -257,7 +257,7 @@ def get_worst_log(logs):
for log in logs:
for line in log['lines']:
- if line['level'] > worst_level:
+ if line['level'] >= worst_level:
worst_level = line['level']
worst_log = log