[Erp5-report] r39861 jm - /erp5/trunk/products/ERP5Type/dynamic/lazy_class.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 3 22:50:45 CET 2010
Author: jm
Date: Wed Nov 3 22:50:43 2010
New Revision: 39861
URL: http://svn.erp5.org?rev=39861&view=rev
Log:
Lower severity of log when portal type class is broken
Lower severity to WARNING because there are legitimate cases, like old objects
in the trash.
An ERROR log (catched by LogInterceptor) was making testBusinessTemplate fail.
Modified:
erp5/trunk/products/ERP5Type/dynamic/lazy_class.py
Modified: erp5/trunk/products/ERP5Type/dynamic/lazy_class.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/lazy_class.py?rev=39861&r1=39860&r2=39861&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/lazy_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/lazy_class.py [utf8] Wed Nov 3 22:50:43 2010
@@ -5,7 +5,7 @@ from Products.ERP5Type.Globals import In
from Products.ERP5Type.Base import Base as ERP5Base
from ExtensionClass import ExtensionClass, pmc_init_of
from ZODB.broken import Broken, PersistentBroken
-from zLOG import LOG, ERROR, BLATHER
+from zLOG import LOG, WARNING, BLATHER
from portal_type_class import generatePortalTypeClass
@@ -122,7 +122,7 @@ class PortalTypeMetaClass(ExtensionClass
try:
baseclasses, attributes = generatePortalTypeClass(portal_type)
except AttributeError:
- LOG("ERP5Type.Dynamic", ERROR,
+ LOG("ERP5Type.Dynamic", WARNING,
"Could not access Portal Type Object for type %r"
% portal_type, error=sys.exc_info())
baseclasses = (ERP5BaseBroken, )
More information about the Erp5-report
mailing list