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

Stefan Reiter s.reiter at proxmox.com
Wed Feb 17 11:30:07 CET 2021


On 17/02/2021 11:25, Dietmar Maurer wrote:
>> 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);
>      }
> 

Wouldn't the syslog crate depend on the systemd journal though? Or does 
it fall back to stdout/stderr?





More information about the pbs-devel mailing list