diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-12-07 23:05:00 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-12-07 23:36:20 +0100 |
commit | 9ccc94afb266428b7feeba805617d31eb8afb23c (patch) | |
tree | 6b0ed200f8a3486637b7b1fd48cea0f53d32ec31 /gnu | |
parent | ac682963a385a44874d91052fd5845f2cc0e8f3e (diff) | |
download | guix-9ccc94afb266428b7feeba805617d31eb8afb23c.tar.gz |
services: guix-publish: Keep fewer rotated logs.
* gnu/services/base.scm (%guix-publish-log-rotations): Add 'options' field.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/base.scm | 4 |
1 files changed, 3 insertions, 1 deletions
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))) |