From 3d1e91cf39d1cacce30d97b8a4ab3adb58afe5ef Mon Sep 17 00:00:00 2001 From: mazrean Date: Tue, 3 Dec 2024 16:05:00 +0900 Subject: [PATCH] debug --- db/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/server.go b/db/server.go index 33279b3..be95322 100644 --- a/db/server.go +++ b/db/server.go @@ -152,7 +152,7 @@ func queryExplainHandler(w http.ResponseWriter, r *http.Request) { explainQuery := "EXPLAIN " + query.Example.query args := constructArgs(query.Example.args, query.Example.namedArgs) - log.Printf("query: %s, args: %v", explainQuery, args) + log.Printf("query: %s, queryArgs: %v, args: %v, namedArgs: %v", explainQuery, args, query.Example.args, query.Example.namedArgs) rows, err := db.Query(explainQuery, args...) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError)