Fixed
Project:
log_stdout
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2026 at 16:28 UTC
Updated:
30 Jul 2026 at 07:14 UTC
Jump to comment: Most recent
Version 3.0 added a configurable minimum severity level, but did not add an update hook to set the default value so nothing would be logged as $this->config->get('severity_level') is NULL:
if ($level > $this->config->get('severity_level')) {
// Severity level is above the ones we want to log.
return;
}
Install v 8.x-1.5 then update to 3.0.0
Add update hook to set the severity_level config to 3, as per the /config/install/log_stdout.settings.yml file.
None.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
smazComment #4
liam morlandThanks for the patch. It would be safer if it would give the default behavior when the value is null. It could become null by someone deleting the config. That should return it to the default.
Comment #6
bladeduCommitted in a7c54c1: added an update hook that sets severity_level to ERROR for sites upgrading from before 3.0.0, and made the runtime check fall back to the same default if the value is ever null, per liam morland's point about the config being deleted. Thanks smaz for the original patch.