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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-23 08:24:25 +02:00
parent 9edf96e6b6
commit 3f780ddf73
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ fn main() -> Result<(), Error> {
.format_timestamp_millis() .format_timestamp_millis()
.init(); .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 // scan all attached disks now, before starting the API
// this will panic and stop the VM if anything goes wrong // this will panic and stop the VM if anything goes wrong