Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mazrean committed Dec 3, 2024
1 parent e91282e commit 3d1e91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d1e91c

Please sign in to comment.