Commit 796d7554 authored by Łukasz Nowak's avatar Łukasz Nowak

Log errors with error level.

parent 8fd932fe
...@@ -40,7 +40,7 @@ from AccessControl.SecurityManagement import getSecurityManager,\ ...@@ -40,7 +40,7 @@ from AccessControl.SecurityManagement import getSecurityManager,\
setSecurityManager, newSecurityManager setSecurityManager, newSecurityManager
from DateTime import DateTime from DateTime import DateTime
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery from Products.ZSQLCatalog.SQLCatalog import SimpleQuery
from zLOG import LOG, INFO from zLOG import LOG, ERROR
#Form for new plugin in ZMI #Form for new plugin in ZMI
manage_addERP5BearerExtractionPluginForm = PageTemplateFile( manage_addERP5BearerExtractionPluginForm = PageTemplateFile(
...@@ -144,7 +144,7 @@ class ERP5BearerExtractionPlugin(BasePlugin): ...@@ -144,7 +144,7 @@ class ERP5BearerExtractionPlugin(BasePlugin):
result = getattr(token_document, result = getattr(token_document,
self.token_validation_method)() self.token_validation_method)()
except Exception: 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, 'validation method %r on %r:' % (self.token_validation_method,
token_document.getPath()), error=True) token_document.getPath()), error=True)
if result is 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