]> git.proxmox.com Git - proxmox-backup.git/commitdiff
restore-daemon: fix use of deprecated env_logger::from_env function
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 Dec 2021 10:12:36 +0000 (11:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 Dec 2021 10:12:36 +0000 (11:12 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-restore-daemon/src/main.rs

index 5a4a324e8a581729e6e3b0ce6b08e46c798e443c..c2be942ba18e41711a5116c3c05071d65a3ec7c1 100644 (file)
@@ -46,7 +46,7 @@ fn main() -> Result<(), Error> {
 
     // don't have a real syslog (and no persistance), so use env_logger to print to a log file (via
     // stdout to a serial terminal attached by QEMU)
-    env_logger::from_env(env_logger::Env::default().default_filter_or("info"))
+    env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info"))
         .write_style(env_logger::WriteStyle::Never)
         .format_timestamp_millis()
         .init();