From f332a167455a5c0d0ae294edc11e2fa9d5e54bbd Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 11 Oct 2021 09:14:23 +0200 Subject: [PATCH] vzdump: pbs: suppress output from upload-log command which ended up in the backup task log and can be confusing to users: > INFO: Backup finished at 2021-10-11 08:40:38 > Result: { > "data": null > } > INFO: Backup job finished successfully For proxmox-backup-server < 2.0.11-1, there was no output for the upload-log command. Reported in the community forum: https://forum.proxmox.com/threads/backup-finishes-ok-but-data-null-info-on-finish.97740/ Signed-off-by: Fabian Ebner --- PVE/VZDump.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index d00be8b2..88ac11b3 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -1097,6 +1097,7 @@ sub exec_backup_task { 'upload-log', [ $pbs_snapshot_name, $task->{tmplog} ], errmsg => "uploading backup task log failed", + outfunc => sub {}, ); }; debugmsg('warn', "$@") if $@; # $@ contains already error prefix