services: guix-build-coordinator: Configure output buffering.

Otherwise the logging is garbled.

* gnu/services/guix.scm (make-guix-build-coordinator-start-script): Configure
line output buffering for stdout and stderr.
This commit is contained in:
Christopher Baines 2020-10-22 14:21:19 +01:00
parent ced9da901f
commit bdaaa6b3e4
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -200,6 +200,9 @@ (define* (make-guix-build-coordinator-start-script database-uri-string
(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