5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-08 04:58:26 +03:00

followup: simplify log callback

run_command only passes defined and chomped strings to the callback,
so no need to do that twice.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-12-12 13:38:55 +01:00
parent 8bf30c2a72
commit 128193e26a

View File

@ -5415,12 +5415,7 @@ sub vm_start {
# errors that might occur and show the user
if ($migratedfrom) {
$run_params{quiet} = 1;
$run_params{logfunc} = sub {
my $msg = shift;
return if !$msg;
chomp $msg;
print "QEMU: $msg\n";
};
$run_params{logfunc} = sub { print "QEMU: $_[0]\n" };
}
my %properties = (