mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 22:45:23 +00:00
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 <f.ebner@proxmox.com>
This commit is contained in:
parent
9242f96c78
commit
f332a16745
@ -1097,6 +1097,7 @@ sub exec_backup_task {
|
|||||||
'upload-log',
|
'upload-log',
|
||||||
[ $pbs_snapshot_name, $task->{tmplog} ],
|
[ $pbs_snapshot_name, $task->{tmplog} ],
|
||||||
errmsg => "uploading backup task log failed",
|
errmsg => "uploading backup task log failed",
|
||||||
|
outfunc => sub {},
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
debugmsg('warn', "$@") if $@; # $@ contains already error prefix
|
debugmsg('warn', "$@") if $@; # $@ contains already error prefix
|
||||||
|
Loading…
Reference in New Issue
Block a user