Subject: bug#35794: closed (Re: [bug#35794] [PATCH] services: guix-publish: Configure log rotation.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 10 Jun 2019 07:01:02 +0000

Your bug report

#35794: [PATCH] services: guix-publish: Log to a file.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
35794: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35794
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#35794] [PATCH] services: guix-publish: Configure log rotation.
From: Christopher Baines <[email-masked]>
To: Ludovic Courtès <[email-masked]>
Cc: [email-masked]
Date: Mon, 10 Jun 2019 08:00:31 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès <[email-masked]> writes:

> Christopher Baines <[email-masked]> skribis:
>
>> * gnu/services/base.scm (%guix-publish-log-rotations): New variable.
>> (guix-publish-service-type): Extend the rottlog-service-type.
>
> LGTM!

Great, I've pushed these patches now :)

Subject: [PATCH] services: guix-publish: Log to a file.
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Sat, 18 May 2019 22:36:03 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
-- 
2.21.0