From eb8c0cb16336f8cae570e664435331cde6c83e5a Mon Sep 17 00:00:00 2001 From: Russell Smith Date: Thu, 3 Dec 2015 19:08:09 +1100 Subject: [PATCH] MDL-52402 backup: Improve debugging output on failed log restores --- backup/util/helper/restore_logs_processor.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backup/util/helper/restore_logs_processor.class.php b/backup/util/helper/restore_logs_processor.class.php index 585d9b432fd..bc2c2b60a68 100644 --- a/backup/util/helper/restore_logs_processor.class.php +++ b/backup/util/helper/restore_logs_processor.class.php @@ -89,11 +89,12 @@ class restore_logs_processor { } // 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; }