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

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Fri Oct 30 15:53:00 UTC 2015


Reviewed-By: Paulo Vital <pvital at linux.vnet.ibm.com>

On Thu, 2015-10-29 at 11:38 -0200, Aline Manera wrote:
> 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):




More information about the Kimchi-devel mailing list