]> git.proxmox.com Git - pve-storage.git/commitdiff
Add logfung in storage_migrate
authorWolfgang Link <w.link@proxmox.com>
Tue, 10 Oct 2017 07:43:52 +0000 (09:43 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 16 Oct 2017 12:59:57 +0000 (14:59 +0200)
The log function is used by storage replication to redirect the output in the correct log.

PVE/Storage.pm

index b226082fbf09b9d10fac63592be11f95e73407d4..94be04ef4185c3b441b63a75f652a1a70063b2a7 100755 (executable)
@@ -536,7 +536,7 @@ sub abs_filesystem_path {
 }
 
 sub storage_migrate {
-    my ($cfg, $volid, $target_sshinfo, $target_storeid, $target_volname, $base_snapshot, $snapshot, $ratelimit_bps, $insecure, $with_snapshots) = @_;
+    my ($cfg, $volid, $target_sshinfo, $target_storeid, $target_volname, $base_snapshot, $snapshot, $ratelimit_bps, $insecure, $with_snapshots, $logfunc) = @_;
 
     my ($storeid, $volname) = parse_volume_id($volid);
     $target_volname = $volname if !$target_volname;
@@ -619,7 +619,7 @@ sub storage_migrate {
                die "import failed: exit code ".($?>>8)."\n";
            }
        } else {
-           run_command([$send, @cstream, $recv]);
+           run_command([$send, @cstream, $recv], logfunc => $logfunc);
        }
     };
     my $err = $@;