[pbs-devel] [PATCH] log: remove unused `init_logger` argument

Gabriel Goller g.goller at proxmox.com
Fri Jul 12 12:07:32 CEST 2024


The `_application_name` argument is not used anymore. It was previously
used to set the correct journald unit-name, which is now handled
automatically.

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 proxmox-log/src/lib.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/proxmox-log/src/lib.rs b/proxmox-log/src/lib.rs
index f4f24e0c43ab..116a63fb62ea 100644
--- a/proxmox-log/src/lib.rs
+++ b/proxmox-log/src/lib.rs
@@ -40,7 +40,6 @@ tokio::task_local! {
 pub fn init_logger(
     env_var_name: &str,
     default_log_level: LevelFilter,
-    _application_name: &str,
 ) -> Result<(), anyhow::Error> {
     let mut log_level = default_log_level;
     if let Ok(v) = env::var(env_var_name) {
-- 
2.43.0





More information about the pbs-devel mailing list