]> git.proxmox.com Git - pve-storage.git/commitdiff
Switched to using log_warn of PVE::RESTEnvironment
authorDaniel Tschlatscher <d.tschlatscher@proxmox.com>
Tue, 14 Jun 2022 09:00:12 +0000 (11:00 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 15 Jun 2022 08:49:22 +0000 (10:49 +0200)
Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/Storage.pm

index 97ea64e896ab4af3423a620ff14cd515fdd69ed4..0d53ba211437e9eab46d433dd05f0263226ecdef 100755 (executable)
@@ -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: $!");
        }
     }
 }