Write errors to the log unless the user is an administrator Under error reporting it is possible (and actually recommended for live sites) to write errors to the log, but not to the screen as well. I don't want to show errors to my users, but at the same time I never check my logs. Is there a way of only showing these errors on screen to administrator users?
Using the devel module you can print to the screen errors that you are seeing, but that requires custom work to catch specific exceptions that you expecting to see.