From: Christopher Baines <mail@cbaines.net>
To: 44143@debbugs.gnu.org
Subject: [bug#44143] [PATCH 5/5] services: guix-build-coordinator: Configure output buffering.
Date: Thu, 22 Oct 2020 17:26:01 +0100 [thread overview]
Message-ID: <20201022162601.3757-5-mail@cbaines.net> (raw)
In-Reply-To: <20201022162601.3757-1-mail@cbaines.net>
Otherwise the logging is garbled.
* gnu/services/guix.scm (make-guix-build-coordinator-start-script): Configure
line output buffering for stdout and stderr.
---
gnu/services/guix.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index ac2a03147c..4afe02792f 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -200,6 +200,9 @@
(guix-build-coordinator build-allocator)
(guix-build-coordinator coordinator))
+ (setvbuf (current-output-port) 'line)
+ (setvbuf (current-error-port) 'line)
+
(simple-format #t "starting the guix-build-coordinator:\n ~A\n"
(current-filename))
(let* ((metrics-registry (make-metrics-registry
--
2.28.0
next prev parent reply other threads:[~2020-10-22 16:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-22 16:16 [bug#44143] [PATCH 0/5] Guix Build Coordinator service fixes Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 1/5] services: guix: Fix hooks gexp issue for the Guix Build Coordinator Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 2/5] gnu: guix-build-coordinator: Ensure gnutls is available Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 3/5] services: guix-build-coordinator: Output the start script name Christopher Baines
2020-10-22 16:26 ` [bug#44143] [PATCH 4/5] services: guix-build-coordinator: Include the system profile in PATH Christopher Baines
2020-10-22 16:26 ` Christopher Baines [this message]
2020-10-23 11:54 ` [bug#44143] [PATCH 0/5] Guix Build Coordinator service fixes Mathieu Othacehe
2020-10-23 15:31 ` bug#44143: " Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201022162601.3757-5-mail@cbaines.net \
--to=mail@cbaines.net \
--cc=44143@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).