Can anyone suggest a quick way to tell Elmah not to use an email handler for local requests?
i.e. when Request.IsLocal == trueI don’t want to receive an email every time I create an exception. Alternatively, you can simply disable elmah for local requests.
I would prefer an answer that does not require me to use a different Web.config locally than I use in production.
source
share