update to proxmox-log 0.2

Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2024-07-25 12:56:06 +02:00
parent 885830935c
commit 9a91594ee6
5 changed files with 5 additions and 7 deletions

View File

@ -5,9 +5,7 @@ pub fn init(env_var_name: &str, default_log_level: &str) {
if let Err(e) = default_log_level
.parse()
.map_err(Error::from)
.and_then(|default_log_level| {
proxmox_log::init_logger(env_var_name, default_log_level, "<pve>")
})
.and_then(|default_log_level| proxmox_log::init_logger(env_var_name, default_log_level))
{
eprintln!("could not set up env_logger: {e:?}");
}

View File

@ -35,7 +35,7 @@ proxmox-apt-api-types = "1.0"
proxmox-config-digest = "0.1"
proxmox-http = { version = "0.9", features = ["client-sync", "client-trait"] }
proxmox-http-error = "0.1.0"
proxmox-log = "0.1"
proxmox-log = "0.2"
proxmox-notify = "0.4"
proxmox-subscription = "0.4"
proxmox-sys = "0.6"

View File

@ -25,7 +25,7 @@ Build-Depends: cargo:native <!nocheck>,
librust-proxmox-http-0.9+client-trait-dev,
librust-proxmox-http-0.9+default-dev,
librust-proxmox-http-error-0.1+default-dev,
librust-proxmox-log-0.1+default-dev,
librust-proxmox-log-0.2+default-dev,
librust-proxmox-notify-0.4+default-dev,
librust-proxmox-subscription-0.4+default-dev,
librust-proxmox-sys-0.6+default-dev,

View File

@ -36,7 +36,7 @@ proxmox-apt-api-types = "1.0"
proxmox-config-digest = "0.1"
proxmox-http = { version = "0.9", features = ["client-sync", "client-trait"] }
proxmox-http-error = "0.1.0"
proxmox-log = "0.1"
proxmox-log = "0.2"
proxmox-notify = { version = "0.4", features = ["pve-context"] }
proxmox-openid = "0.10"
proxmox-resource-scheduling = "0.3.0"

View File

@ -23,7 +23,7 @@ Build-Depends: cargo:native <!nocheck>,
librust-proxmox-http-0.9+client-trait-dev,
librust-proxmox-http-0.9+default-dev,
librust-proxmox-http-error-0.1+default-dev,
librust-proxmox-log-0.1+default-dev,
librust-proxmox-log-0.2+default-dev,
librust-proxmox-notify-0.4+default-dev,
librust-proxmox-notify-0.4+pve-context-dev,
librust-proxmox-openid-0.10+default-dev,