[Asterisk-code-review] logrotate: Fix duplicate log entries. (asterisk[20])
N A
asteriskteam at digium.com
Wed Mar 8 09:59:21 CST 2023
N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/19982 )
Change subject: logrotate: Fix duplicate log entries.
......................................................................
logrotate: Fix duplicate log entries.
The Asterisk logrotate script contains explicit
references to files with the .log extension,
which are also included when *log is expanded.
This causes issues with newer versions of logrotate.
This fixes this by ensuring that a log file cannot
be referenced multiple times after expansion occurs.
ASTERISK-30442 #close
Reported by: EN Barnett
Tested by: EN Barnett
Change-Id: Ic875ed9d052fe79f4c3bef58d37d65b2231af796
---
M contrib/scripts/asterisk.logrotate
1 file changed, 21 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/82/19982/1
diff --git a/contrib/scripts/asterisk.logrotate b/contrib/scripts/asterisk.logrotate
index f774446..6352283 100644
--- a/contrib/scripts/asterisk.logrotate
+++ b/contrib/scripts/asterisk.logrotate
@@ -1,4 +1,4 @@
-__LOGDIR__/debug.log __LOGDIR__/console __LOGDIR__/full.log __LOGDIR__/messages.log __LOGDIR__/*log {
+__LOGDIR__/console __LOGDIR__/*log {
weekly
missingok
rotate 52
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19982
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 20
Gerrit-Change-Id: Ic875ed9d052fe79f4c3bef58d37d65b2231af796
Gerrit-Change-Number: 19982
Gerrit-PatchSet: 1
Gerrit-Owner: N A <asterisk at phreaknet.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230308/b9670b3c/attachment-0001.html>
More information about the asterisk-code-review
mailing list