Message ID | 20190518213603.31145-1-mail@cbaines.net |
---|---|
State | Accepted |
Headers | show |
Series | [bug#35794] services: guix-publish: Log to a file. | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | fail | Apply failed |
Christopher Baines <mail@cbaines.net> skribis: > This makes it easier to read the output, as it's recorded in a file. > > * gnu/services/base.scm (guix-publish-shepherd-service): Add #:log-file to > make-forkexec-constructor. LGTM! Ludo’.
Christopher Baines <mail@cbaines.net> skribis:
> + #:log-file "/var/log/guix-publish.log"))
It’d probably make sense to extend ‘rottlog-service-type’ in a
subsequent patch so that this file is automatically rotated (especially
since it can grow pretty quickly.)
Ludo’.
Ludovic Courtès <ludo@gnu.org> writes: > Christopher Baines <mail@cbaines.net> skribis: > >> + #:log-file "/var/log/guix-publish.log")) > > It’d probably make sense to extend ‘rottlog-service-type’ in a > subsequent patch so that this file is automatically rotated (especially > since it can grow pretty quickly.) Sure, I've set another patch to this effect. I'm not sure what the optimal rotation frequency is, or what the options are, so I've just left it as the default for now.
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index f709ca5519..4593ac202f 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1793,7 +1793,8 @@ archive' public keys, with GUIX." #:environment-variables (list (string-append "GUIX_LOCPATH=" #$glibc-utf8-locales "/lib/locale") - "LC_ALL=en_US.utf8"))) + "LC_ALL=en_US.utf8") + #:log-file "/var/log/guix-publish.log")) (stop #~(make-kill-destructor))))))) (define %guix-publish-accounts