Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.The Hosting Task Logs output is way to verbose. We display all hosting log types, even debug messages.
I wanted to hide most of them, but I didn't know which ones. So I made it a setting:


| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2017-09-28 16-25-29.png | 134.31 KB | Jon Pugh | |
| Screenshot from 2017-09-28 16-22-53.png | 20.47 KB | Jon Pugh |











Comments
Comment #3
colanWould it be hard to switch to checkboxes, where they're all checked by default? Better UX I think.
Comment #4
Jon PughThe available values are dynamic. Whatever goes into drush_log() gets saved there. That's why I didn't do checkboxes initially, in case someone wanted to set their own before we knew what the available log entries were. The hosting_log table might get deleted in some sites, so looking it up based on that isn't really reliable either.
I'm going to say that the Hosting Settings page is pretty advanced anyway, so maybe this is good enough for its intended audience?
Comment #6
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedConverting the UI to checkboxes might be nice as a followup, but this works.
Merged with only a whitespace fix
Comment #7
Jon PughAwesome!!! Major usability improvement.
Thanks hello!
Comment #9
colanThis seems to change the default behaviour from showing everything to showing less, which should not be happening. Defaults should only change if the configuration has been changed by the user. For example, everyone's been complaining about HTTPS certificate generation problems stemming from #2952411: Restore Let's Encrypt log output in Verify tasks because they can no longer see what's going on, and have no idea why.
We need to reset this so that everything shows by default.
Unassigning Jon here so that anyone else can pick it up.
Workaround until this gets fixed:
Also: Follow-up issue for the UX improvement is happening in #2960769: Add proper UX to the selector for choosing logs types to show.
Comment #10
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedSince these values are dynamic we need some option to indicate 'ALL', any newly invented log type would otherwise be ignored.
What if we set the default value for hosting_task_logs_types_display to 'ALL' and extend the sql query to be something 'type IN (:types) OR show_all = :showall'
Comment #11
colanSounds good to me.
Comment #14
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedThis new commit adds a special type "ALL. And sets the default to that.
Comment #15
colanGreat! Thanks.