php - New Relic Error Reporting - Stop Catching E_NOTICE errors -


the issue have right is hard find actual bugs because many e_notices found. have 600 sites on our server complicated scripts, , i've done lot handle great deal of them, there still quite few.

i receive email , text every time error percentage high, great prevent problems.

i'm sure i'm not 1 encounter problem -- there recommended solution? i've tried setting error_reporting( e_all ^ e_notice ); hasn't stopped it.

one possible solution i've thought of not setting new relic error handler, using own, , sending them error if it's not e_notice. haven't figured out how yet.

new relics's php agent not trace e_notice errors unless you've explicitly used set_error_handler(newrelic_notice_error);

if you'd new relic trace not uncaught exceptions, creating own error handler calls newrelic_notice_error make sense.

there more information regarding in new relic documentation: https://newrelic.com/docs/php/the-php-api

in cases, not necessary, or advised, set new relic error handler.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -