How to stop elmah from using an email handler for local requests?

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.

+5
source share
1 answer

ELMAH , / / . ( ELMAH), :

<errorFilter>
    <test>
        <equal binding="Context.Request.IsLocal" 
               value="True" type="Boolean" />
    </test>
</errorFilter> 

. wiki examples ELMAH.

+8

All Articles