From 8fe00d99449b7c80e81ab3c9826625a4fcd89aa4 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Tue, 10 Oct 2017 09:43:52 +0200 Subject: [PATCH] Add logfung in storage_migrate The log function is used by storage replication to redirect the output in the correct log. --- PVE/Storage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index b226082..94be04e 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -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 = $@; -- 2.39.2