Package: mirrors
Severity: wishlist
Version: 4.1.4

Hello,

Though the documentation for the Debian mirror script configuration files [1] 
allows setting aspects like LOGDIR, LOG, and LOGROTATE, there is no option to 
disable logging completely and send the ftpsync output directly to STDOUT and 
STDERR. Moreover, if I attempt to symlink the ftpsync-cron.out and 
ftpsync-cron.err files to /dev/stdout and /dev/stderr respectively, problems 
arise when the script notices that the files already exist and attempts to 
rotate them. This is especially annoying when attempting to run the Debian 
mirror scripts (ftpsync-cron in particular) inside of Docker/Kubernetes. I 
would like to be able to send the logs of the Debian mirror scripts directly to 
STDOUT and STDERR instead of a set log file.

As such, I suggest implementing a new boolean flag in ftpsync.conf that allows 
for enabling or disabling logging. The LOGGING setting could default to true, 
but when set to false would output all the lines from ftpsync-cron itself and 
from the calls to ftpsync directly to STDOUT and STDERR.

Thanks,
-Grant

[1] 
https://salsa.debian.org/mirror-team/archvsync/blob/master/doc/ftpsync.conf.5.md

Reply via email to