From c2da2e25c6513ba8cd847a38e701a9a2426a1d18 Mon Sep 17 00:00:00 2001 From: Lin Hua Cheng Date: Mon, 28 Jan 2013 23:49:25 -0800 Subject: [PATCH] Default recoverable error to WARN log level. Fixes bug 1108631. Change-Id: Ibe76a7b0badf31e4aba63f6d7f42c461b7ea1023 --- horizon/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/horizon/exceptions.py b/horizon/exceptions.py index 313f0c5ac..5f17a4e89 100644 --- a/horizon/exceptions.py +++ b/horizon/exceptions.py @@ -298,6 +298,8 @@ def handle(request, message=None, redirect=None, ignore=False, if issubclass(exc_type, RECOVERABLE): wrap = True if not force_silence and not handled and (not ignore or force_log): + # Default recoverable error to WARN log level + log_method = getattr(LOG, log_level or "warning") log_method(error_color("Recoverable error: %s" % exc_value)) if not ignore and not handled: messages.error(request, message or exc_value)