Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

MvcController Action Audit logging twice #470


User avatar
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)
  • User Avatar
    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.

  • User Avatar
    0
    hikalkan created
    Support Team

    Thanks for information sharing :)