]> git.proxmox.com Git - proxmox-backup.git/commitdiff
pbs-client: backup-writer: use log::warn instead of eprintln!
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Wed, 7 Jun 2023 14:07:00 +0000 (16:07 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 19 Jul 2023 08:49:09 +0000 (10:49 +0200)
The errors are not fatal so we only throw a warning.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
pbs-client/src/backup_writer.rs

index 15927a17fa31f399b0d3d8acc5372ffc0ec1fc2b..87c182ce91681f689d0fe5e783b9307c585f90f5 100644 (file)
@@ -295,7 +295,7 @@ impl BackupWriter {
                         )
                         .await
                     {
-                        eprintln!("Error downloading .fidx from previous manifest: {}", err);
+                        log::warn!("Error downloading .fidx from previous manifest: {}", err);
                     }
                 }
                 Ok(ArchiveType::DynamicIndex) => {
@@ -307,7 +307,7 @@ impl BackupWriter {
                         )
                         .await
                     {
-                        eprintln!("Error downloading .didx from previous manifest: {}", err);
+                        log::warn!("Error downloading .didx from previous manifest: {}", err);
                     }
                 }
                 _ => { /* do nothing */ }