Added log when offline update fails

This commit is contained in:
manuel 2020-01-09 17:09:55 +01:00
parent 1cef8aa62f
commit 62c915d6df
1 changed files with 7 additions and 0 deletions

View File

@ -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);