file restore daemon: log about basic steps

to make the log more useful..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-03 19:51:32 +02:00
parent 309e14ebb7
commit 9a06eb1618
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
///! Daemon binary to run inside a micro-VM for secure single file restore of disk images
use anyhow::{bail, format_err, Error};
use log::error;
use lazy_static::lazy_static;
use log::{info, error};
use std::os::unix::{
io::{FromRawFd, RawFd},
@ -50,10 +50,13 @@ fn main() -> Result<(), Error> {
// scan all attached disks now, before starting the API
// this will panic and stop the VM if anything goes wrong
info!("scanning all disks...");
{
let _disk_state = DISK_STATE.lock().unwrap();
}
info!("disk scan complete, starting main runtime...");
proxmox_backup::tools::runtime::main(run())
}