aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-build-coordinator/agent-messaging/http.scm19
1 files changed, 12 insertions, 7 deletions
diff --git a/guix-build-coordinator/agent-messaging/http.scm b/guix-build-coordinator/agent-messaging/http.scm
index b74e114..e7c17aa 100644
--- a/guix-build-coordinator/agent-messaging/http.scm
+++ b/guix-build-coordinator/agent-messaging/http.scm
@@ -663,13 +663,18 @@ port. Also, the port used can be changed by passing the --port option.\n"
(dump-port file-port request-port))
#:binary #t))
#:headers `((Authorization . ,auth-value)))))
- (when (>= (response-code response) 400)
- (raise-exception
- (make-exception-with-message
- (coordinator-handle-failed-request 'PUT
- (uri-path uri)
- response
- body))))))))
+ (if (>= (response-code response) 400)
+ (raise-exception
+ (make-exception-with-message
+ (coordinator-handle-failed-request 'PUT
+ (uri-path uri)
+ response
+ body)))
+ (begin
+ (simple-format #t "~A: successfully uploaded log file (~A)\n"
+ build-id
+ (response-code response))
+ #t))))))
#:times 9
#:delay (+ 30 (random 60))))