[Kimchi-devel] [PATCH] Log any exception raised

Aline Manera alinefm at linux.vnet.ibm.com
Thu Oct 29 13:38:43 UTC 2015


Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 src/wok/exception.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wok/exception.py b/src/wok/exception.py
index bac326c..26ae2d1 100644
--- a/src/wok/exception.py
+++ b/src/wok/exception.py
@@ -22,7 +22,6 @@
 import cherrypy
 import gettext
 
-
 from wok.i18n import messages as _messages
 from wok.template import get_lang, validate_language
 
@@ -51,6 +50,7 @@ class WokException(Exception):
 
         msg = unicode(msg, 'utf-8') % args
         pattern = "%s: %s" % (code, msg)
+        cherrypy.log.error_log.error(pattern)
         Exception.__init__(self, pattern)
 
     def _get_translation(self):
-- 
2.1.0




More information about the Kimchi-devel mailing list