[PATCH proxmox-backup v3 03/30] sync: push: use tracing macros instead of log

Christian Ebner
2026-04-14T12:59:36Z

In order to keep logging consistent, drop all ocurences of log::info!
and log::warn! and use the tracing macros instead.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
changes since version 2:
- not present in previoius version

src/server/push.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/server/push.rs b/src/server/push.rs
index 697b94f2f..a8f7c15f9 100644
--- a/src/server/push.rs
+++ b/src/server/push.rs
@@ -822,8 +822,8 @@ pub(crate) async fn push_snapshot(
Ok((manifest, _raw_size)) => manifest,
Err(err) => {
// No manifest in snapshot or failed to read, warn and skip
- log::warn!("Encountered errors: {err:#}");
- log::warn!("Failed to load manifest for '{snapshot}'!");
+ warn!("Encountered errors: {err:#}");
+ warn!("Failed to load manifest for '{snapshot}'!");
return Ok(stats);
}
};
@@ -857,7 +857,7 @@ pub(crate) async fn push_snapshot(
if fetch_previous_manifest {
match backup_writer.download_previous_manifest().await {
Ok(manifest) => previous_manifest = Some(Arc::new(manifest)),
- Err(err) => log::info!("Could not download previous manifest - {err}"),
+ Err(err) => info!("Could not download previous manifest - {err}"),
}
};

--
2.47.3