[pve-devel] [PATCH storage v3 3/4] fix #3972: Switched to using log_warn of PVE::RESTEnvironment

Daniel Tschlatscher d.tschlatscher at proxmox.com
Fri May 20 15:28:58 CEST 2022


Signed-off-by: Daniel Tschlatscher <d.tschlatscher at proxmox.com>
---
 PVE/Storage.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 6f2558f..98ecd60 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -1604,7 +1604,8 @@ sub archive_auxiliaries_remove {
 	my $path = "$dirname/$filename";
 
 	if (-e $path) {
-	    unlink $path or $! == ENOENT or warn "Removing $type file failed: $!\n";
+	    unlink $path or $! == ENOENT
+		or PVE::RESTEnvironment::log_warn("Removing $type file failed: $!");
 	}
     }
 }
-- 
2.30.2






More information about the pve-devel mailing list