Commit 55e57c38 authored by Łukasz Nowak's avatar Łukasz Nowak

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.
parent 8b3e92fd
......@@ -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)]
......
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