This is an automated email from the git hooks/post-receive script.
civodul pushed a commit to branch main
in repository guix-cuirass.
The following commit(s) were added to refs/heads/main by this push:
new 9154945 forgejo: Log requests and their response code.
9154945 is described below
commit 91549453f00466e3778a1ceb191de11f5c94ef84
Author: Ludovic Courtès <[email protected]>
AuthorDate: Thu Apr 17 11:28:02 2025 +0200
forgejo: Log requests and their response code.
* src/cuirass/forges/forgejo.scm (forgejo-request): Add ‘log-debug’
call.
---
src/cuirass/forges/forgejo.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/cuirass/forges/forgejo.scm b/src/cuirass/forges/forgejo.scm
index 9463f83..42fa3f3 100644
--- a/src/cuirass/forges/forgejo.scm
+++ b/src/cuirass/forges/forgejo.scm
@@ -241,6 +241,8 @@ METHOD. Returns the body of the response as a Guile object."
(condition
(&forgejo-invalid-response-error
(headers (response-headers response)))))))))
+ (log-info "Forgejo request: ~a ~a -> ~a"
+ method (uri->string uri) (response-code response))
(json-string->scm
(bytevector->string response-body charset))))