From 3f780ddf73094ca819536c58013dc9bb1f6a5e97 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 23 Jul 2021 08:24:25 +0200 Subject: [PATCH] restore daemon: log about doing basic system env setup debugging history showed that its surely nice to have more logs at when stuff happens (and thus fails) Signed-off-by: Thomas Lamprecht --- src/bin/proxmox-restore-daemon.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/proxmox-restore-daemon.rs b/src/bin/proxmox-restore-daemon.rs index 50f58d78..f97bef36 100644 --- a/src/bin/proxmox-restore-daemon.rs +++ b/src/bin/proxmox-restore-daemon.rs @@ -53,7 +53,8 @@ fn main() -> Result<(), Error> { .format_timestamp_millis() .init(); - setup_system_env()?; + info!("setup basic system environment..."); + setup_system_env().map_err(|err| format_err!("system environment setup failed: {}", err))?; // scan all attached disks now, before starting the API // this will panic and stop the VM if anything goes wrong