Commit c01c2fcb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable some logs.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1435 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0101e973
......@@ -124,7 +124,7 @@ class CachingMethod:
obj = cached_object_dict.get(index)
if obj is None or obj.time + obj.duration < now:
LOG('CachingMethod', 0, 'cache miss: id = %s, duration = %s, method = %s, args = %s, kwd = %s' % (str(self.id), str(self.duration), str(self.method), str(args), str(kwd)))
#LOG('CachingMethod', 0, 'cache miss: id = %s, duration = %s, method = %s, args = %s, kwd = %s' % (str(self.id), str(self.duration), str(self.method), str(args), str(kwd)))
if obj is None:
obj = CachedObject()
obj.time = now
......@@ -133,7 +133,8 @@ class CachingMethod:
cached_object_dict[index] = obj
else:
LOG('CachingMethod', 0, 'cache hit: id = %s, duration = %s, method = %s, args = %s, kwd = %s' % (str(self.id), str(self.duration), str(self.method), str(args), str(kwd)))
#LOG('CachingMethod', 0, 'cache hit: id = %s, duration = %s, method = %s, args = %s, kwd = %s' % (str(self.id), str(self.duration), str(self.method), str(args), str(kwd)))
pass
return obj.result
......
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