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
- MyWebSite.Controllers.HomeController
- 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
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
Thanks for information sharing :)