From e6afb6862eb674fa47daf4cd1e1cfb7fc4f81c2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 2 May 2012 13:48:13 +0200
Subject: [PATCH] Log errors with error level.

---
 product/ERP5Security/ERP5BearerExtractionPlugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Security/ERP5BearerExtractionPlugin.py b/product/ERP5Security/ERP5BearerExtractionPlugin.py
index 822d68386f..d574208a6b 100644
--- a/product/ERP5Security/ERP5BearerExtractionPlugin.py
+++ b/product/ERP5Security/ERP5BearerExtractionPlugin.py
@@ -40,7 +40,7 @@ from AccessControl.SecurityManagement import getSecurityManager,\
     setSecurityManager, newSecurityManager
 from DateTime import DateTime
 from Products.ZSQLCatalog.SQLCatalog import SimpleQuery
-from zLOG import LOG, INFO
+from zLOG import LOG, ERROR
 
 #Form for new plugin in ZMI
 manage_addERP5BearerExtractionPluginForm = PageTemplateFile(
@@ -144,7 +144,7 @@ class ERP5BearerExtractionPlugin(BasePlugin):
             result = getattr(token_document,
             self.token_validation_method)()
           except Exception:
-            LOG('BearerExtractionPlugin', INFO, 'Problem while calling token '
+            LOG('BearerExtractionPlugin', ERROR, 'Problem while calling token '
               'validation method %r on %r:' % (self.token_validation_method,
               token_document.getPath()), error=True)
           if result is True:
-- 
2.30.9