Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---

Not sure about this one. On the one hand it adds even more to the
migration logs, which are already rather long. On the other hand it
might contain useful information.

 PVE/QemuMigrate.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 28d3071..107590b 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -494,9 +494,10 @@ sub sync_disks {
                    'allow_rename' => !$local_volumes->{$volid}->{is_vmstate},
                };
 
+               my $logfunc = sub { $self->log('info', $_[0]); };
                my $new_volid = eval {
                    PVE::Storage::storage_migrate($self->{storecfg}, $volid, 
$self->{ssh_info},
-                                                 $targetsid, 
$storage_migrate_opts);
+                                                 $targetsid, 
$storage_migrate_opts, $logfunc);
                };
                if (my $err = $@) {
                    die "storage migration for '$volid' to storage '$targetsid' 
failed - $err\n";
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to