public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH pbs 1/2] pbs-client: backup-writer: use log::warn instead of eprintln!
@ 2023-06-07 14:07 Maximiliano Sandoval
  2023-06-07 14:07 ` [pbs-devel] [PATCH pbs 2/2] fix #4761: pbs-client: backup_writer: improve error reporting Maximiliano Sandoval
  2023-07-19  9:08 ` [pbs-devel] applied-series: [PATCH pbs 1/2] pbs-client: backup-writer: use log::warn instead of eprintln! Fabian Grünbichler
  0 siblings, 2 replies; 4+ messages in thread
From: Maximiliano Sandoval @ 2023-06-07 14:07 UTC (permalink / raw)
  To: pbs-devel

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbs-client/src/backup_writer.rs b/pbs-client/src/backup_writer.rs
index be6da2a6..2e18a060 100644
--- a/pbs-client/src/backup_writer.rs
+++ b/pbs-client/src/backup_writer.rs
@@ -293,7 +293,7 @@ impl BackupWriter {
                         )
                         .await
                     {
-                        eprintln!("Error downloading .fidx from previous manifest: {}", err);
+                        log::warn!("Error downloading .fidx from previous manifest: {}", err);
                     }
                 }
                 Ok(ArchiveType::DynamicIndex) => {
@@ -305,7 +305,7 @@ impl BackupWriter {
                         )
                         .await
                     {
-                        eprintln!("Error downloading .didx from previous manifest: {}", err);
+                        log::warn!("Error downloading .didx from previous manifest: {}", err);
                     }
                 }
                 _ => { /* do nothing */ }
-- 
2.39.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-19  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07 14:07 [pbs-devel] [PATCH pbs 1/2] pbs-client: backup-writer: use log::warn instead of eprintln! Maximiliano Sandoval
2023-06-07 14:07 ` [pbs-devel] [PATCH pbs 2/2] fix #4761: pbs-client: backup_writer: improve error reporting Maximiliano Sandoval
2023-06-07 14:11   ` Maximiliano Sandoval
2023-07-19  9:08 ` [pbs-devel] applied-series: [PATCH pbs 1/2] pbs-client: backup-writer: use log::warn instead of eprintln! Fabian Grünbichler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal