With devel.module on, all php errors are printed to screen, and not to the logs, despite my settings in admin/settings.
I didn't see any devel setting to change that behaviour.
This happens both for the admin and for an anonymous user.

Is this a feature or a bug?

I was using devel module on my live site to see each page's computing time, but now I have to turn it off when I am not working with it.

Comments

moshe weitzman’s picture

seems like a bug to me. patches welcome.

moshe weitzman’s picture

well, drupal's error handling is skipped so your site will behave with whatever php settings are in place for log messages. i think this should be fixed with a note in the README. perhpas someone will suggest language.

beginner’s picture

Which php settings? You mean php.ini?

moshe weitzman’s picture

yes, the display_errors setting.

JohnAlbin’s picture

I wouldn't mind patching this, but I'd like to understand the purpose of calling restore_error_handler() on line 132. I don't see drupal calling set_error_handler() anywhere.

Anyone have some enlightenment?

moshe weitzman’s picture

Status: Active » Fixed

error handling is improved in 5.0 and head

Anonymous’s picture

Status: Fixed » Closed (fixed)