]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/AbstractMigrate.pm
use correct log function
[pve-common.git] / data / PVE / AbstractMigrate.pm
index 6c6061dffb1eb59d9e60c174c9a1c78d103d8d86..3425fa1f97877e3b325865c6d5afc9b9dd8c8b48 100644 (file)
@@ -42,7 +42,7 @@ sub cmd {
 
     my $logfunc = sub {
        my $line = shift;
-       logmsg('info', $line);
+       $self->log('info', $line);
     };
 
     $self->log('info', "# " . PVE::Tools::cmd2string($cmd));
@@ -134,7 +134,7 @@ sub migrate {
     local $ENV{RSYNC_RSH} = join(' ', @ssh_cmd);
 
     local $SIG{INT} = $SIG{TERM} = $SIG{QUIT} = $SIG{HUP} = $SIG{PIPE} = sub {
-       logmsg('err', "received interrupt - delayed");
+       $self->log('err', "received interrupt - delayed");
        $self->{delayed_interrupt} = 1;
     };