Module: check_mk
Branch: master
Commit: 193555cb08b1708a582eb927f263340c0159fa3e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=193555cb08b170…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 28 12:14:55 2017 +0100
Fixed logwatch "problematic logfile" list really skipping empty logfiles
Change-Id: I1fb75e981f726fc39d4bce571718a8df6f12c704
---
web/htdocs/logwatch.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/logwatch.py b/web/htdocs/logwatch.py
index b4975c9..7b91205 100644
--- a/web/htdocs/logwatch.py
+++ b/web/htdocs/logwatch.py
@@ -80,6 +80,8 @@ def show_log_list():
html.end_context_buttons()
for site, host_name, logs in all_logs():
+ if not logs:
+ continue
html.h2(html.render_a(host_name, href=html.makeuri([('site', site),
('host', host_name)])))
list_logs(site, host_name, logs)
html.footer()