From: Shan Shaji <s.shaji@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 1/1] refactor: log: replace use of `tasklog_pbs` with `tasklog`
Date: Wed, 28 Jan 2026 14:54:56 +0100 [thread overview]
Message-ID: <20260128135457.245662-3-s.shaji@proxmox.com> (raw)
In-Reply-To: <20260128135457.245662-1-s.shaji@proxmox.com>
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@proxmox.com>
---
server/src/bin/proxmox-datacenter-api/main.rs | 2 +-
server/src/bin/proxmox-datacenter-manager-daily-update.rs | 2 +-
server/src/bin/proxmox-datacenter-privileged-api.rs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/src/bin/proxmox-datacenter-api/main.rs b/server/src/bin/proxmox-datacenter-api/main.rs
index 524a4b5..bafbe02 100644
--- a/server/src/bin/proxmox-datacenter-api/main.rs
+++ b/server/src/bin/proxmox-datacenter-api/main.rs
@@ -50,7 +50,7 @@ fn main() -> Result<(), Error> {
proxmox_log::Logger::from_env("PROXMOX_DEBUG", LevelFilter::INFO)
.journald_on_no_workertask()
- .tasklog_pbs()
+ .tasklog()
.init()?;
if std::env::args().nth(1).is_some() {
diff --git a/server/src/bin/proxmox-datacenter-manager-daily-update.rs b/server/src/bin/proxmox-datacenter-manager-daily-update.rs
index 8b6641c..a7c7547 100644
--- a/server/src/bin/proxmox-datacenter-manager-daily-update.rs
+++ b/server/src/bin/proxmox-datacenter-manager-daily-update.rs
@@ -110,7 +110,7 @@ fn main() {
// We need to use the tasklog layer here because we call a workertask.
proxmox_log::Logger::from_env("PDM_LOG", proxmox_log::LevelFilter::INFO)
.journald_on_no_workertask()
- .tasklog_pbs()
+ .tasklog()
.init()
.expect("unable to initialize logger");
diff --git a/server/src/bin/proxmox-datacenter-privileged-api.rs b/server/src/bin/proxmox-datacenter-privileged-api.rs
index 6b490f2..0f2b509 100644
--- a/server/src/bin/proxmox-datacenter-privileged-api.rs
+++ b/server/src/bin/proxmox-datacenter-privileged-api.rs
@@ -27,7 +27,7 @@ fn main() -> Result<(), Error> {
proxmox_log::Logger::from_env("PROXMOX_DEBUG", LevelFilter::INFO)
.journald_on_no_workertask()
- .tasklog_pbs()
+ .tasklog()
.init()?;
proxmox_product_config::init(pdm_config::api_user()?, pdm_config::priv_user()?);
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2026-01-28 13:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-28 13:54 [pdm-devel] [PATCH datacenter-manager/proxmox{, -backup} 0/3] refactor: log: deprecate tasklog_pbs and replace its usages with tasklog Shan Shaji
2026-01-28 13:54 ` [pdm-devel] [PATCH proxmox 1/1] proxmox-log: deprecate `tasklog_pbs` and add `tasklog` function Shan Shaji
2026-01-28 13:54 ` Shan Shaji [this message]
2026-01-28 13:54 ` [pdm-devel] [PATCH proxmox-backup 1/1] refactor: log: replace use of `tasklog_pbs` with `tasklog` Shan Shaji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260128135457.245662-3-s.shaji@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox