From patchwork Sat May 18 21:36:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 14004 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9690A17029; Sat, 18 May 2019 22:48:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4545917027 for ; Sat, 18 May 2019 22:48:24 +0100 (BST) Received: from localhost ([127.0.0.1]:39009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hS7Bn-0006rY-Ln for patchwork@mira.cbaines.net; Sat, 18 May 2019 17:48:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hS7BT-0006cD-9J for guix-patches@gnu.org; Sat, 18 May 2019 17:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hS7BS-0004f0-C7 for guix-patches@gnu.org; Sat, 18 May 2019 17:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47797) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hS7BS-0004er-94 for guix-patches@gnu.org; Sat, 18 May 2019 17:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hS7BS-0001nw-5R for guix-patches@gnu.org; Sat, 18 May 2019 17:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35794] [PATCH] services: guix-publish: Log to a file. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 May 2019 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35794@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15582160456884 (code B ref -1); Sat, 18 May 2019 21:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 May 2019 21:47:25 +0000 Received: from localhost ([127.0.0.1]:33108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hS7Ar-0001mx-2b for submit@debbugs.gnu.org; Sat, 18 May 2019 17:47:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hS7Ao-0001mf-K2 for submit@debbugs.gnu.org; Sat, 18 May 2019 17:47:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:59838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hS7Aj-0004Cd-Ed for submit@debbugs.gnu.org; Sat, 18 May 2019 17:47:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hS7Ai-0005oH-Es for guix-patches@gnu.org; Sat, 18 May 2019 17:47:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hS6zv-0004sF-Db for guix-patches@gnu.org; Sat, 18 May 2019 17:36:08 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:53820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hS6zv-0004qm-87 for guix-patches@gnu.org; Sat, 18 May 2019 17:36:07 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 0C9C517025 for ; Sat, 18 May 2019 22:36:04 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 27765874 for ; Sat, 18 May 2019 21:36:03 +0000 (UTC) From: Christopher Baines Date: Sat, 18 May 2019 22:36:03 +0100 Message-Id: <20190518213603.31145-1-mail@cbaines.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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