0

我最近开始在我的视图中添加 plone.caching 规则集声明:

<cache:ruleset
    for=".views.MyContentTypeView"
    ruleset="plone.content.itemView"
    />

我已经开始在我的开发站点的日志中看到这些:

2012-10-23 14:48:02 ERROR Zope.SiteErrorLog 1351000082.330.867850813917 http://localhost:12311/my_content_type/@@landing
Traceback (innermost last):
  Module ZPublisher.Publish, line 117, in publish
  Module zope.event, line 31, in notify
  Module zope.component.event, line 24, in dispatch
  Module zope.component._api, line 136, in subscribers
  Module zope.component.registry, line 321, in subscribers
  Module zope.interface.adapter, line 585, in subscribers
  Module plone.caching.hooks, line 102, in intercept
Intercepted

来自 hooks.py,在 intercept() 的文档字符串中:

To properly abort request processing, this will raise an exception. The
actual response (typically an empty response) is then set via a view on
the exception. We set and lock the response status to avoid defaulting to
a 404 exception.

因此,看起来这些错误可能是预期的行为?如果是这样,是否有可能让 Zope 忽略这些错误,以免它们弄乱我的日志?

4

0 回答 0