Module: check_mk
Branch: master
Commit: a6fa937421a5dc49a7f8a6a3cdbfdb201066e44c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a6fa937421a5dc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 5 10:16:42 2015 +0200
Exception-Attributes are now top level crash report values
---
modules/check_mk_base.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index bba5752..710152e 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1476,10 +1476,13 @@ def create_crash_dump_info_file(crash_dir, hostname, check_name,
item, params, d
exc_type, exc_value, exc_traceback = sys.exc_info()
crash_info = {
- "crash_type" : "check",
- "time" : time.time(),
- "os" : get_os_info(),
- "version" : check_mk_version,
+ "crash_type" : "check",
+ "time" : time.time(),
+ "os" : get_os_info(),
+ "version" : check_mk_version,
+ "exc_type" : exc_type.__name__,
+ "exc_value" : "%s" % exc_value,
+ "exc_traceback" : traceback.extract_tb(exc_traceback),
"details" : {
"check_output" : text,
"host" : hostname,
@@ -1487,9 +1490,6 @@ def create_crash_dump_info_file(crash_dir, hostname, check_name,
item, params, d
"check_type" : check_name,
"item" : item,
"params" : params,
- "exc_type" : exc_type.__name__,
- "exc_value" : "%s" % exc_value,
- "exc_traceback" : traceback.extract_tb(exc_traceback),
},
}