Module: check_mk
Branch: master
Commit: a5bf6ffb2d3a7b3c66e3e8db6a8bf3df31b4a67b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a5bf6ffb2d3a7b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 11 11:39:22 2014 +0100
Better output of exceptions in cron jobs
---
web/htdocs/index.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index b889c96..663c7c0 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -165,6 +165,8 @@ def handler(req, fields = None, profiling = True):
handler()
except Exception, e:
html.write(str(e))
+ if config.debug:
+ html.write(html.attrencode(format_exception()))
release_all_locks()
return apache.OK