Hi, 在 2025/6/4 21:16, Yuri Konotopov 写道: > Hi! > > 04.06.2025 07:23, xiao sheng wen пишет: >> Package: apt-mirror2 >> Version: 13-2 >> Severity: minor >> X-Debbugs-Cc: atzli...@debian.org >> >> Hi, >> >> When I enable apt-mirror2 cron in /etc/cron.d/apt-mirror2, >> >> I can't get any log about apt-mirror2 execute in $base_path/var. > > I just checked fresh apt-mirror2 install and can not reproduce this issue. > > Are there any files under `$base_path/var`? It should contains > `apt-mirror2.log` and one log file per mirror URL.
Yes, there two log files under under `$base_path/var`. I use root's crontab do a test again: crontab -l -u root */2 * * * * /usr/bin/apt-mirror2 > /dev/null The log output is exist. The "> /dev/null" don't affect whether generate log files. > >> >> The /etc/cron.d/apt-mirror2 use > /dev/null to disable the log output. >> >> This is not a good idear. The log should keep. >> >> I had try to delete "> /dev/null" in /etc/cron.d/apt-mirror2, >> I can get the log in logfile under $base_path/var, but the logfile >> can't appended. > > The output of command is silenced because apt-mirror2 write log files > in addition to stdout. Yes. > >> >> I suggest support append log. > > As of now apt-mirror2 mirrors apt-mirror behavior which rewrite log file > every run. > I think it can be made configurable though. Yes, rewrite log is the question. I suggest set append log as default configuration. Thanks! -- 肖盛文 xiao sheng wen -- Debian Developer(atzlinux) Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40debian.org GnuPG Public Key: 0x00186602339240CB
OpenPGP_signature.asc
Description: OpenPGP digital signature