Commit e6afb686 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

Log errors with error level.

parent 06b4f1af
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment