mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 13:20:08 +00: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:
parent
8bf30c2a72
commit
128193e26a
@ -5415,12 +5415,7 @@ sub vm_start {
|
|||||||
# errors that might occur and show the user
|
# errors that might occur and show the user
|
||||||
if ($migratedfrom) {
|
if ($migratedfrom) {
|
||||||
$run_params{quiet} = 1;
|
$run_params{quiet} = 1;
|
||||||
$run_params{logfunc} = sub {
|
$run_params{logfunc} = sub { print "QEMU: $_[0]\n" };
|
||||||
my $msg = shift;
|
|
||||||
return if !$msg;
|
|
||||||
chomp $msg;
|
|
||||||
print "QEMU: $msg\n";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my %properties = (
|
my %properties = (
|
||||||
|
Loading…
Reference in New Issue
Block a user