[pve-devel] [PATCH qemu-server v8 3/4] destroy_vm: use log_warn for vdisk_free errors for consistency
Michael Köppl
m.koeppl at proxmox.com
Thu Jun 26 18:06:25 CEST 2025
To make warnings visually consistent with the handling of other storage
errors in destroy_vm(), replace the use of warn with log_warn.
Signed-off-by: Michael Köppl <m.koeppl at proxmox.com>
---
src/PVE/QemuServer.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
index 91b0d1e0..27b4093b 100644
--- a/src/PVE/QemuServer.pm
+++ b/src/PVE/QemuServer.pm
@@ -1921,7 +1921,7 @@ sub destroy_vm {
$volids->{$volid} = 1;
eval { PVE::Storage::vdisk_free($storecfg, $volid) };
- warn "Could not remove disk '$volid', check manually: $@" if $@;
+ log_warn("Could not remove disk '$volid', check manually: $@") if $@;
};
# only remove disks owned by this VM (referenced in the config)
@@ -1947,7 +1947,7 @@ sub destroy_vm {
sub {
my ($volid, $sid, $volname, $d) = @_;
eval { PVE::Storage::vdisk_free($storecfg, $volid) };
- warn $@ if $@;
+ log_warn($@) if $@;
},
);
}
--
2.39.5
More information about the pve-devel
mailing list