[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 12:13:08 CET 2021
> On 02/17/2021 11:30 AM Stefan Reiter <s.reiter at proxmox.com> wrote:
>
>
> 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?
Ah, I see - we do not have syslog running.
I guess its Ok to use env_logger then.
More information about the pbs-devel
mailing list