Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292905

drupal_set_message('whatever', 'error') should be integrated with logging

$
0
0

In most cases, drupal_set_message() is just an other channel for reporting information along with logging, and should be handled as such instead of requiring duplicate calls with inconsistent parameters.

Severity levels should be harmonized:

But more importantly, this would avoid situations where modules have to use two separate calls, one to target the live (message) channel and one for the archive (log). When using PSR/3 logging, a single call could be routed to two channels, one going to live and the other to archive, based on configuration.

This would also enable integrating the screen/log reporting level.


Viewing all articles
Browse latest Browse all 292905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>