最近、ビューに 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() の docstring で:
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 にこれらのエラーを無視させて、ログが乱雑にならないようにすることは可能ですか?