Module: check_mk
Branch: master
Commit: ef6a73ea9dfc09b3dbeca4399c2ded5d61bc9b2c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef6a73ea9dfc09…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 22 12:20:06 2013 +0200
Better logging of suppressed exceptions
---
web/htdocs/index.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index f3c583a..3df5b76 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -401,6 +401,7 @@ def handler(req, profiling = True):
except Exception, e:
html.unplug()
+ apache.log_error("%s %s %s" % (req.uri, _('Internal error') +
':', e), apache.APLOG_ERR) # log in all cases
if plain_error:
html.write(_("Internal error") + ": %s\n" % e)
elif not fail_silently:
@@ -411,7 +412,6 @@ def handler(req, profiling = True):
else:
url = html.makeuri([("debug", "1")])
html.show_error("%s: %s (<a
href=\"%s\">%s</a>)" % (_('Internal error') + ':',
e, url, _('Retry with debug mode')))
- apache.log_error("%s %s" % (_('Internal error') +
':', e), apache.APLOG_ERR)
html.footer()
response_code = apache.OK