[pbs-devel] [PATCH] log: fallback to stderr if syslog not available

Fiona Ebner f.ebner at proxmox.com
Thu Sep 12 11:29:59 CEST 2024


Am 10.09.24 um 15:03 schrieb Gabriel Goller:
> Don't panic when the syslog is not available - which happens commonly in
> containers and sbuild environments (chroot and unshare) - instead
> fallback to stderr.
> 
> Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
> ---
> 
> Note: this fixes `make sbuild` for pve-storage.
> Disclaimer: haven't quite figured out why tbh, I don't see where the
> verify_api function calls proxmox-backup-api or proxmox-backup-proxy. 
> 

It's also used by libpve-rs and I can confirm "injecting" (done using
sbuild options --starting-build-commands and --pre-build-commands) a
package of libpve-rs-perl that incorporates your proxmox-log change
makes building pve-storage and pve-container work again :)

Tested-by: Fiona Ebner <f.ebner at proxmox.com>




More information about the pbs-devel mailing list