1.20.x system.install system_update_1057()

Add default for watchdog_enabled_severity_levels.

Related topics

File

modules/system/system.install, line 2914
Install, update and uninstall functions for the system module.

Code

function system_update_1057() {
  $config = config('system.core');
  $config->set('watchdog_enabled_severity_levels', array(
    WATCHDOG_EMERGENCY,
    WATCHDOG_ALERT,
    WATCHDOG_CRITICAL,
    WATCHDOG_ERROR,
    WATCHDOG_WARNING,
    WATCHDOG_NOTICE,
    WATCHDOG_INFO,
    // WATCHDOG_DEBUG,
// WATCHDOG_DEPRECATED,
  ));
  $config->save();
}