Open Closed

MvcController Action Audit logging twice #470


0
radek stromský created

Hi,

when I am logging MvcController's actions it gets logged twice. One record for real controller and second for proxy created by castle dynamic proxy.

Single request for Home/Index results in two records in Audit log

  1. MyWebSite.Controllers.HomeController
  2. Castle.Proxies.HomeControllerProxy

Is there a way remove proxies from logging? I am unable to change this behaviour by using Auditing Selectors.

Any suggestions? Thanks


2 Answer(s)
  • 0
    radek stromský created

    Problem solved!

    My base controller class wan't abstract. When I changed it to abstract, log record for controller's proxy is no longer saved to database.

  • 0
    hikalkan created
    Support Team

    Thanks for information sharing :)