services: guix-publish: Log to a file.
authorChristopher Baines <mail@cbaines.net>
Sat, 18 May 2019 20:58:40 +0000 (21:58 +0100)
committerChristopher Baines <mail@cbaines.net>
Mon, 10 Jun 2019 06:58:06 +0000 (07:58 +0100)
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.

gnu/services/base.scm

index c88a6dd..5e46795 100644 (file)
@@ -1824,7 +1824,8 @@ raise a deprecation warning if the 'compression-level' field was used."
                      #: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