[pbs-devel] [PATCH proxmox-backup] api: remove init_logger `application_name` argument

Gabriel Goller g.goller at proxmox.com
Fri Jul 12 14:46:53 CEST 2024


The `application_name` argument was removed and is now automatically
set.

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---

Depends on: https://lists.proxmox.com/pipermail/pbs-devel/2024-July/010177.html
git-send somehow didn't send this patch :)

 src/bin/proxmox-backup-api.rs   | 2 +-
 src/bin/proxmox-backup-proxy.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/proxmox-backup-api.rs b/src/bin/proxmox-backup-api.rs
index 95c14e41a28a..a1f97634f979 100644
--- a/src/bin/proxmox-backup-api.rs
+++ b/src/bin/proxmox-backup-api.rs
@@ -41,7 +41,7 @@ fn get_index() -> Pin<Box<dyn Future<Output = Response<Body>> + Send>> {
 }
 
 async fn run() -> Result<(), Error> {
-    init_logger("PBS_LOG", LevelFilter::INFO, "proxmox-backup-api")?;
+    init_logger("PBS_LOG", LevelFilter::INFO)?;
 
     config::create_configdir()?;
 
diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs
index e0bd47b4551c..29f258060956 100644
--- a/src/bin/proxmox-backup-proxy.rs
+++ b/src/bin/proxmox-backup-proxy.rs
@@ -183,7 +183,7 @@ async fn get_index_future(env: RestEnvironment, parts: Parts) -> Response<Body>
 }
 
 async fn run() -> Result<(), Error> {
-    init_logger("PBS_LOG", LevelFilter::INFO, "proxmox-backup-proxy")?;
+    init_logger("PBS_LOG", LevelFilter::INFO)?;
 
     proxmox_backup::auth_helpers::setup_auth_context(false);
     proxmox_backup::server::notifications::init()?;
-- 
2.43.0





More information about the pbs-devel mailing list