Skip to content

Commit

Permalink
MDL-52402 backup: Improve debugging output on failed log restores
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-russ committed Dec 4, 2015
1 parent ea5c18d commit eb8c0cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backup/util/helper/restore_logs_processor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ public function process_log_record($log) {
}
// Arrived here log is empty, no rule was able to perform the conversion, log the problem
if (empty($newlog)) {
self::$task->log('Log module-action "' . $keyname . '" process problem. Not restored', backup::LOG_DEBUG);
self::$task->log('Log module-action "' . $keyname . '" process problem. Not restored. ' .
json_encode($log), backup::LOG_DEBUG);
}

} else { // Action not found log the problem
self::$task->log('Log module-action "' . $keyname . '" unknown. Not restored', backup::LOG_DEBUG);
self::$task->log('Log module-action "' . $keyname . '" unknown. Not restored. '.json_encode($log), backup::LOG_DEBUG);
$newlog = false;

}
Expand Down

0 comments on commit eb8c0cb

Please sign in to comment.