Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Node Gallery logs too many non-important events to watchdog. For example, cache clear for a gallery is not important enough to log it every time. Because default logging method of Drupal is database, and DB write is expensive operation, we should avoid excessive logging.
IMO, events like these should be only logged when debugging / troubleshooting.
Comment | File | Size | Author |
---|---|---|---|
#2 | Loging settings.PNG | 72.47 KB | dddave |
Comments
Comment #0.0
crea CreditAttribution: crea commentedbetter wording
Comment #1
dddave CreditAttribution: dddave commentedI considered opening an issue for this myself when I noticed all the "cache" entries in my watchdog.
Comment #2
dddave CreditAttribution: dddave commentedAttaching a pic of a similar option for font-your-face module in D7.
Comment #3
justintime CreditAttribution: justintime commentedNah, they just need removed altogether. They were added there when I was developing the caching layer, and I haven't needed to look for those messages in months. If I were to keep them there (and I'm not), I'd convert them to drush_log() statements -- who uses the UI to clear caches anymore? :)
Comment #4
scroogie CreditAttribution: scroogie commentedI do. I always have the devel block enabled, and its just quicker most of the time to use the handy link. :P
Nevertheless agree with the change though. Apparently I always ignored the calls. Shows you how good it is to have some additional eyes on the code sometimes.
Comment #5
crea CreditAttribution: crea commentedAdmin Menu allows to clear cache too..and it's quite a popular module to ignore
Comment #6
justintime CreditAttribution: justintime commentedFixed those in 6.x-3.x-dev. @crea, I think you might have missed my bad attempt at humor in #3 :)
Comment #7
crea CreditAttribution: crea commentedjustintime
I can be retarded at times )
Comment #8.0
(not verified) CreditAttribution: commentedrewording