From 343c005b08c02a32f8cd41b08cc65638d0a80d82 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Mon, 11 May 2026 23:29:29 +0900 Subject: [PATCH] knotmirror: more logs for debugging Signed-off-by: Seongmin Lee --- knotmirror/xrpc/git_get_blob.go | 1 + knotmirror/xrpc/git_get_tree.go | 1 + knotmirror/xrpc/git_list_languages.go | 1 + 3 files changed, 3 insertions(+) diff --git a/knotmirror/xrpc/git_get_blob.go b/knotmirror/xrpc/git_get_blob.go index 04c04013e..0da730106 100644 --- a/knotmirror/xrpc/git_get_blob.go +++ b/knotmirror/xrpc/git_get_blob.go @@ -30,6 +30,7 @@ func (x *Xrpc) GetBlob(w http.ResponseWriter, r *http.Request) { } l := x.logger.With("repo", repo, "ref", ref, "path", path) + l.Debug("request") if path == "" { writeJson(w, http.StatusBadRequest, atclient.ErrorBody{Name: "BadRequest", Message: "missing path parameter"}) diff --git a/knotmirror/xrpc/git_get_tree.go b/knotmirror/xrpc/git_get_tree.go index 51f8c3c84..c88e23efa 100644 --- a/knotmirror/xrpc/git_get_tree.go +++ b/knotmirror/xrpc/git_get_tree.go @@ -23,6 +23,7 @@ func (x *Xrpc) GetTree(w http.ResponseWriter, r *http.Request) { path = r.URL.Query().Get("path") // path can be empty (defaults to root) ) l := x.logger.With("method", "git.getTree", "repo", repoQuery, "ref", ref) + l.Debug("request") repo, err := syntax.ParseATURI(repoQuery) if err != nil || repo.RecordKey() == "" { diff --git a/knotmirror/xrpc/git_list_languages.go b/knotmirror/xrpc/git_list_languages.go index 5bd158d21..77d6ac1c4 100644 --- a/knotmirror/xrpc/git_list_languages.go +++ b/knotmirror/xrpc/git_list_languages.go @@ -25,6 +25,7 @@ func (x *Xrpc) ListLanguages(w http.ResponseWriter, r *http.Request) { ref = r.URL.Query().Get("ref") ) l := x.logger.With("method", "git.listLanguages", "repo", repoQuery, "ref", ref) + l.Debug("request") repo, err := syntax.ParseATURI(repoQuery) if err != nil || repo.RecordKey() == "" { -- 2.51.2