[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: services: guix-publish: Keep fewer rotated logs.
From: |
guix-commits |
Subject: |
03/03: services: guix-publish: Keep fewer rotated logs. |
Date: |
Wed, 7 Dec 2022 17:44:53 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 9ccc94afb266428b7feeba805617d31eb8afb23c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Dec 7 23:05:00 2022 +0100
services: guix-publish: Keep fewer rotated logs.
* gnu/services/base.scm (%guix-publish-log-rotations): Add 'options'
field.
---
gnu/services/base.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 370696a55e..ba59e46155 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -2016,7 +2016,9 @@ raise a deprecation warning if the 'compression-level'
field was used."
(define %guix-publish-log-rotations
(list (log-rotation
- (files (list "/var/log/guix-publish.log")))))
+ (files (list "/var/log/guix-publish.log"))
+ (options `("rotate 4" ;don't keep too many of them
+ ,@%default-log-rotation-options)))))
(define (guix-publish-activation config)
(let ((cache (guix-publish-configuration-cache config)))