Skip to content

Commit

Permalink
MDL-30937 core_backup: use default log level when none specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Dec 8, 2014
1 parent 2d84748 commit a76eef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/util/factories/backup_factory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function get_logger_chain($interactive, $execution, $backupid) {

// Create database_logger, observing $CFG->backup_database_logger_level and defaulting to LOG_WARNING
// and pointing to the backup_logs table
$dllevel = isset($CFG->backup_database_logger_level) ? $CFG->backup_database_logger_level : backup::LOG_WARNING;
$dllevel = isset($CFG->backup_database_logger_level) ? $CFG->backup_database_logger_level : $dfltloglevel;
$columns = array('backupid' => $backupid);
$enabledloggers[] = new database_logger($dllevel, 'timecreated', 'loglevel', 'message', 'backup_logs', $columns);

Expand Down

0 comments on commit a76eef5

Please sign in to comment.