From 62c915d6df809906120f4e60e782a019e195b338 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 9 Jan 2020 17:09:55 +0100 Subject: [PATCH] Added log when offline update fails --- pandora_console/include/ajax/update_manager.ajax.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandora_console/include/ajax/update_manager.ajax.php b/pandora_console/include/ajax/update_manager.ajax.php index 1988916bd5..023766a99e 100644 --- a/pandora_console/include/ajax/update_manager.ajax.php +++ b/pandora_console/include/ajax/update_manager.ajax.php @@ -404,6 +404,13 @@ if ($search_minor) { $return['have_minor'] = true; $size_mr = get_number_of_mr($package, $ent, $offline); $return['mr'] = $size_mr; + } else { + $product_name = io_safe_output(get_product_name()); + $version = get_parameter('version', ''); + db_pandora_audit( + 'ERROR: Update '.$product_name, + 'Update version of '.$product_name.' by '.$config['id_user'].' has failed.' + ); } echo json_encode($return);