Module: check_mk
Branch: master
Commit: 0700194305854bebbfe341230c1e02078899e982
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0700194305854b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 24 10:03:06 2017 +0200
BI compilation: Write traceback to logs to have more details for debugging
Change-Id: I64ccd3690f501a1c71f59885fd88279984862524
---
web/htdocs/bi.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 5253730..6302a5b 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -276,8 +276,8 @@ class JobWorker(object):
aggr_type, aggr_idx, groups = job["id"]
log("Compilation finished %r - took %.3f sec" %
(job["id"], time.time() - start_time))
except Exception, e:
- log("MP-Worker Exception %s" % e)
- mp_errors.put("Aggregation error: %s" % e)
+ log("MP-Worker Exception %s" % traceback.format_exception())
+ mp_errors.put("Aggregation error: %s" %
traceback.format_exc())
finally:
# Even in an error scenario we consider these hosts as compiled
if job["id"][0] == AGGR_HOST: