Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2016 at 07:39 UTC
Updated:
22 Sep 2016 at 10:00 UTC
Jump to comment: Most recent
At /admin/config/development/logging we have no option to display php error messages in a block that would enable admins limiting the display of error messages per role.Such a feature would be invaluable for debugging. Currently, we cannot control who sees the error messages, but in a block we could easily limit visibility per role.
Earlier attempts at such a feature reached a dead end #342128: how I can hide error messages for anonymous users?
Lots of duplicate requests and discussions as per https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF...
Comments
Comment #2
giorgio79 commentedComment #3
giorgio79 commentedComment #4
giorgio79 commentedComment #6
geek-merlinI hacked a D7 contrib module for that. Should really be in core.
https://www.drupal.org/project/errorlevelpermission
Comment #7
Taxoman commentedIn case this could be backported to D7, please consider functionality from these modules:
- https://www.drupal.org/project/disable_messages
- https://www.drupal.org/project/messages_to_block
- https://www.drupal.org/project/nicemessages
and in particular:
- https://www.drupal.org/project/better_messages
Comment #17
dqd5 years later ... Are we talking about the naked messages (like on WSOD) or about the Block "Status messages" which will post most of the errors from the error log? In second case it is possible already to set this block permission to user roles. But it should definitely be the default! Which is another issue ...