Problem/Motivation
Today I found the option called: Show a status message warning in case of geo-coding failure.
in the field settings page of the geocoder field, and in first instance looks great because I don't want to bother my users if such error happens.
But that options becomes meaninless because even if that checkbox is unchecked the geocoder service throws some errors anyway when something went wrong:
public static function log($message, $type) {
\Drupal::logger('geocoder')->error($message);
drupal_set_message($message, $type);
}
So anyway the users see the errors there.
Proposed resolution
Remove the drupal_set_message from the Geocoder service, these errors are for the developers/site builders and they should know how to check the log of the site to get more info, no necessary to display this info to the users.
Remaining tasks
Review the patch.
Commit? :-p
User interface changes
None
API changes
None
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#4 | 2838411-interdiff-2-4.txt | 492 bytes | gnuget |
#4 | 2838411-geocoder-remove-drupal_set_message-4.patch | 954 bytes | gnuget |
#2 | 2838411-geocoder-remove-drupal_set_message.patch | 800 bytes | gnuget |
Comments
Comment #2
gnugetPatch attached.
Thanks!
Comment #3
PolHi,
I'm not against that.
Here's my quick review:
This $type argument could go away too then ?
Comment #4
gnugetTrue!
Adding a new version of the patch.
Thanks for your review.
Comment #5
zerolab CreditAttribution: zerolab at Torchbox commentedWorks like a charm!
Comment #7
PolThanks!