[pdm-devel] [PATCH proxmox-backup 1/1] refactor: log: replace use of `tasklog_pbs` with `tasklog`

Shan Shaji s.shaji at proxmox.com
Wed Jan 28 14:54:57 CET 2026


The `tasklog_pbs` function was used on both PBS and PDM. Since the
function was not specific to PBS anymore, the same has been deprecated
and added a new `tasklog` function inside the proxmox-log crate.
To avoid deprecation warning replaced all call sites of
`tasklog_pbs` with `tasklog` function.

Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
 src/bin/proxmox-backup-api.rs     | 2 +-
 src/bin/proxmox-backup-manager.rs | 2 +-
 src/bin/proxmox-backup-proxy.rs   | 2 +-
 src/bin/proxmox-daily-update.rs   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/proxmox-backup-api.rs b/src/bin/proxmox-backup-api.rs
index 417e9e97..922fc77e 100644
--- a/src/bin/proxmox-backup-api.rs
+++ b/src/bin/proxmox-backup-api.rs
@@ -44,7 +44,7 @@ fn get_index() -> Pin<Box<dyn Future<Output = Response<Body>> + Send>> {
 async fn run() -> Result<(), Error> {
     proxmox_log::Logger::from_env("PBS_LOG", LevelFilter::INFO)
         .journald_on_no_workertask()
-        .tasklog_pbs()
+        .tasklog()
         .init()?;
 
     config::create_configdir()?;
diff --git a/src/bin/proxmox-backup-manager.rs b/src/bin/proxmox-backup-manager.rs
index f8365070..b2f09170 100644
--- a/src/bin/proxmox-backup-manager.rs
+++ b/src/bin/proxmox-backup-manager.rs
@@ -663,7 +663,7 @@ async fn run() -> Result<(), Error> {
     // will directly execute workertasks.
     proxmox_log::Logger::from_env("PBS_LOG", proxmox_log::LevelFilter::INFO)
         .stderr_on_no_workertask()
-        .tasklog_pbs()
+        .tasklog()
         .init()?;
     proxmox_backup::server::notifications::init()?;
     proxmox_product_config::init(pbs_config::backup_user()?, pbs_config::priv_user()?);
diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs
index 870208fe..482f3a1a 100644
--- a/src/bin/proxmox-backup-proxy.rs
+++ b/src/bin/proxmox-backup-proxy.rs
@@ -181,7 +181,7 @@ async fn get_index_future(env: RestEnvironment, parts: Parts) -> Response<Body>
 async fn run() -> Result<(), Error> {
     proxmox_log::Logger::from_env("PBS_LOG", LevelFilter::INFO)
         .journald_on_no_workertask()
-        .tasklog_pbs()
+        .tasklog()
         .init()?;
 
     proxmox_backup::auth_helpers::setup_auth_context(false);
diff --git a/src/bin/proxmox-daily-update.rs b/src/bin/proxmox-daily-update.rs
index 224103cc..8b82c6c6 100644
--- a/src/bin/proxmox-daily-update.rs
+++ b/src/bin/proxmox-daily-update.rs
@@ -113,7 +113,7 @@ fn main() {
     // We need to use the tasklog layer here because we call a workertask.
     proxmox_log::Logger::from_env("PBS_LOG", proxmox_log::LevelFilter::INFO)
         .journald_on_no_workertask()
-        .tasklog_pbs()
+        .tasklog()
         .init()
         .expect("unable to initialize logger");
 
-- 
2.47.3





More information about the pdm-devel mailing list