services: anonip: Add 'debug?' configuration field.

* gnu/services/web.scm (<anonip-configuration>) [debug?]: New field.
(anonip-shepherd-service): Honor it.
* doc/guix.texi (Log Rotation) <anonip-configuration>: Document it.

Change-Id: Iaf57b5992808374b069a55c34a9adfdfe52b046c
This commit is contained in:
Maxim Cournoyer 2024-10-30 16:16:30 +09:00
parent ab554d6048
commit 2c322884b4
No known key found for this signature in database
GPG key ID: 1260E46482E63562
2 changed files with 6 additions and 0 deletions

View file

@ -20789,6 +20789,9 @@ The file name of the processed log file.
The following optional settings may be provided:
@table @code
@item debug?
Print debug messages when @code{#true}.
@item skip-private?
When @code{#true} do not mask addresses in private ranges.

View file

@ -220,6 +220,7 @@ (define-module (gnu services web)
anonip-configuration-anonip
anonip-configuration-input
anonip-configuration-output
anonip-configuration-debug?
anonip-configuration-skip-private?
anonip-configuration-column
anonip-configuration-replacement
@ -1448,6 +1449,8 @@ (define-record-type* <anonip-configuration>
(default anonip))
(input anonip-configuration-input) ;string
(output anonip-configuration-output) ;string
(debug? anonip-configuration-debug? ;boolean
(default #f))
(skip-private? anonip-configuration-skip-private? ;boolean
(default #f))
(column anonip-configuration-column ;number