aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-build-coordinator/agent-messaging/http.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/guix-build-coordinator/agent-messaging/http.scm b/guix-build-coordinator/agent-messaging/http.scm
index ede0743..531df57 100644
--- a/guix-build-coordinator/agent-messaging/http.scm
+++ b/guix-build-coordinator/agent-messaging/http.scm
@@ -308,9 +308,10 @@
;; 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)
+ (when bytes
+ (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