From 3048641bb42de421c57a817d166d12535f31796e Mon Sep 17 00:00:00 2001 From: Daniel Tschlatscher Date: Tue, 14 Jun 2022 11:00:12 +0200 Subject: [PATCH] Switched to using log_warn of PVE::RESTEnvironment Signed-off-by: Daniel Tschlatscher Reviewed-by: Fabian Ebner Signed-off-by: Wolfgang Bumiller --- PVE/Storage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 97ea64e..0d53ba2 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -23,6 +23,7 @@ use PVE::JSONSchema; use PVE::INotify; use PVE::RPCEnvironment; use PVE::SSHInfo; +use PVE::RESTEnvironment qw(log_warn); use PVE::Storage::Plugin; use PVE::Storage::DirPlugin; @@ -1602,7 +1603,7 @@ 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 log_warn("Removing $type file failed: $!"); } } }