aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator/agent-messaging/http.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-12-22 11:40:26 +0000
committerChristopher Baines <mail@cbaines.net>2021-12-22 11:40:26 +0000
commit57093bdeabf10cadecbd049a55ffbe2f3b963596 (patch)
tree1dcad71100d3a455f3519c409aea590efc0882f7 /guix-build-coordinator/agent-messaging/http.scm
parent6b6218d86d406206f4bb4cac7123955ec17e4b82 (diff)
downloadbuild-coordinator-57093bdeabf10cadecbd049a55ffbe2f3b963596.tar
build-coordinator-57093bdeabf10cadecbd049a55ffbe2f3b963596.tar.gz
Improve logging when submitting outputs
Diffstat (limited to 'guix-build-coordinator/agent-messaging/http.scm')
-rw-r--r--guix-build-coordinator/agent-messaging/http.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/guix-build-coordinator/agent-messaging/http.scm b/guix-build-coordinator/agent-messaging/http.scm
index 8b2f04c..ede0743 100644
--- a/guix-build-coordinator/agent-messaging/http.scm
+++ b/guix-build-coordinator/agent-messaging/http.scm
@@ -301,11 +301,16 @@
(define (perform-upload)
(retry-on-error
(lambda ()
- (let ((bytes (or (get-partial-upload-bytes)
- (get-completed-upload-bytes))))
+ (let* ((partial-upload-bytes (get-partial-upload-bytes))
+ (completed-upload-bytes (get-completed-upload-bytes))
+ (bytes (or partial-upload-bytes
+ completed-upload-bytes)))
;; Check if the server has all the bytes
(unless (and bytes
(eq? bytes file-size))
+ (log 'DEBUG "still more to send (bytes: " file-size
+ ", partial upload bytes: " partial-upload-bytes
+ ", completed upload bytes: " completed-upload-bytes)
;; Still more to send
(call-with-input-file file