From 55e57c38f84d358b86595ae67e5281ab7765d59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Tue, 17 Jan 2012 09:36:33 +0100 Subject: [PATCH] Silent logging. Context can be None, there is no need to log. getBusinessLinkValueList method is called many times without context and this pollutes log heavily. --- product/ERP5/Document/BusinessProcess.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/product/ERP5/Document/BusinessProcess.py b/product/ERP5/Document/BusinessProcess.py index dff9022ddf..e8f2ccde58 100644 --- a/product/ERP5/Document/BusinessProcess.py +++ b/product/ERP5/Document/BusinessProcess.py @@ -38,8 +38,6 @@ from Products.ERP5.MovementCollectionDiff import _getPropertyAndCategoryList import zope.interface -from zLOG import LOG - _marker = object() class BusinessProcess(Path, XMLObject): @@ -240,8 +238,6 @@ class BusinessProcess(Path, XMLObject): # and avoid using the low level Predicate API. But the Domain Tool does # support the condition above without scripting? if context is None: - LOG('ERP5.Document.BusinessProcess', 0, 'Context is None %r' % - (business_link_list,)) return business_link_list return [business_link for business_link in business_link_list if business_link.test(context)] -- 2.30.9