]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: pbs: suppress output from upload-log command
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 11 Oct 2021 07:14:23 +0000 (09:14 +0200)
committerFabian Ebner <f.ebner@proxmox.com>
Fri, 4 Mar 2022 08:56:59 +0000 (09:56 +0100)
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/

(cherry picked from commit 76897db1466870b03ed2f2d06db5164fee0b305f)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm

index 40ce01dd0528e50f895bc7e4aef27772190b0de8..c8821e7c998535de74668016373d97f5e1082058 100644 (file)
@@ -1096,6 +1096,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