Module: check_mk
Branch: master
Commit: d01029e40d5c065feaca5f9debec6252a28662d8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d01029e40d5c06…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 21 13:48:09 2017 +0100
Fixed access to not existant variable in exception handler
Change-Id: I02a0937d460c6215dd25d776886733ebc1c832bf
---
bin/mkeventd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/mkeventd b/bin/mkeventd
index c384398..a127c6b 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -1773,7 +1773,7 @@ class EventServer(ECServerThread):
if line:
try:
self.process_raw_data(self.process_line, (line, address))
- except Exception:
+ except Exception as e:
self.logger.exception('Exception handling a log line (skipping
this one): %s' % e)
@@ -2230,7 +2230,7 @@ class EventServer(ECServerThread):
try:
result = self.event_rule_matches(rule, event)
- except Exception:
+ except Exception as e:
self.logger.exception(' Exception during matching:\n%s' % e)
result = False