diff options
author | Christopher Baines <mail@cbaines.net> | 2023-08-29 11:36:14 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-08-29 11:36:14 +0100 |
commit | dba89707dea33b6c37949afb38876367800c3348 (patch) | |
tree | e04eaf532263b66cc0937375d2afdb4a98a6e3f6 | |
parent | 1f69f40db0d1d65cae5880847d120baf974fbbef (diff) | |
download | build-coordinator-dba89707dea33b6c37949afb38876367800c3348.tar build-coordinator-dba89707dea33b6c37949afb38876367800c3348.tar.gz |
Fix some logging messages
-rw-r--r-- | guix-build-coordinator/utils.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm index 9aee736..1401ac8 100644 --- a/guix-build-coordinator/utils.scm +++ b/guix-build-coordinator/utils.scm @@ -935,7 +935,7 @@ References: ~a~%" (lambda (key . args) (simple-format (current-error-port) - "~A thread pool, exception when handling job: ~A ~A\n" + "~A work queue, exception when handling job: ~A ~A\n" name key args) (backtrace)))) #:unwind? #t)) @@ -1100,9 +1100,12 @@ References: ~a~%" #f) (lambda () ;; Logging may raise an exception, so try and just keep going. - (simple-format (current-error-port) - "~A thread pool, job raised exception ~A: ~A\n" - name job-args exn)) + (display + (simple-format + #f + "~A thread pool, job raised exception ~A: ~A\n" + name job-args exn) + (current-error-port))) #:unwind? #t)) (lambda () (apply proc job-args)) |