From d80ad18c67e3f8f6b470870065c6fb3acee25bb2 Mon Sep 17 00:00:00 2001 From: Matthias Heiserer Date: Mon, 13 Jun 2022 15:54:25 +0200 Subject: [PATCH] fix #3890 - GUI: warn for unlikely iothread config Previously, only a plaintext line in the task log showed something was off. Now, the GUI will show it as a warning. Reviewed-by: Fabian Ebner Signed-off-by: Matthias Heiserer --- PVE/QemuServer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index cce8e216..baee8bc1 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3959,7 +3959,9 @@ sub config_to_command { $iothread .= ",iothread=iothread-$controller_prefix$controller"; push @$cmd, '-object', "iothread,id=iothread-$controller_prefix$controller"; } elsif ($drive->{iothread}) { - warn "iothread is only valid with virtio disk or virtio-scsi-single controller, ignoring\n"; + log_warn( + "iothread is only valid with virtio disk or virtio-scsi-single controller, ignoring\n" + ); } my $queues = '';