[pbs-devel] [PATCH proxmox-backup 15/22] file-restore-daemon: add binary with virtio-vsock API server

Dietmar Maurer dietmar at proxmox.com
Wed Feb 17 11:25:19 CET 2021


> Since the REST server implementation uses the log!() macro, we can
> redirect its output to stdout by registering env_logger as the logging
> target. env_logger is already in our dependency tree via zstd/bindgen.

Initializing the syslog crate should be enough:

   if let Err(err) = syslog::init(
        syslog::Facility::LOG_DAEMON,
        log::LevelFilter::Info,
        Some("file-restore-daemon")) {
        bail!("unable to inititialize syslog - {}", err);
    }





More information about the pbs-devel mailing list