Module: check_mk
Branch: master
Commit: c89885313fed81c339eaaa31211a38f02c1e6e76
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c89885313fed81…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 13 16:51:46 2013 +0100
mkeventd: Better exception tracking during action execution
---
mkeventd/bin/mkeventd | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index a6b7fea..b23ee8b 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -2304,10 +2304,10 @@ def do_rule_action(action, event, user=""):
log_event_history(event, "SCRIPT", user, action['id'])
else:
log("Cannot execute action %s: invalid action type %s" %
(action["id"], action_type))
- except Exception, e:
+ except Exception:
if opt_debug:
raise
- log("Error during execution of action %s: %s" %
(action["id"], e))
+ log("Error during execution of action %s: %s" %
(action["id"], format_exception()))
def substitute_event_tags(text, event):
groups = [("match_group_%d" % (nr+1), g) for (nr, g) in
enumerate(event.get("match_groups", ()))]