Module: check_mk
Branch: master
Commit: 5be59166ed33f61500448c7fb5338e25608e54f9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5be59166ed33f6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 20 16:49:29 2017 +0100
Improve exception handling when request finalizing fails
Change-Id: I5cb32f72365ebb19e7b7ed8102b3e143c22cfdd6
---
.bugs/2487 | 7 +++++--
web/htdocs/index.py | 6 +++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/.bugs/2487 b/.bugs/2487
index 658ba91..b295cae 100644
--- a/.bugs/2487
+++ b/.bugs/2487
@@ -1,10 +1,13 @@
Title: Availability: Changing time range of an annotation duplicates it
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2016-04-07 16:50:29
Targetversion: 1.2.8p1
-Class: bug
The start/end is used as a key. If you edit an existing annotation and
change one of those - Check_MK thinks you are creating a new one and
creates a duplicate entry.
+
+2017-02-20 16:47:51: changed state open -> done
+Already fixed
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 8c9f7f4..3bd42f1 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -147,7 +147,11 @@ def handler(mod_python_req, fields = None, is_profiling = False):
response_code = apache.OK
finally:
- finalize_request()
+ try:
+ finalize_request()
+ except:
+ log_exception()
+ raise
return response_code