Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions internal/debuglog.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package internal

import "fmt"

// LogRequest prints a request's full details for debugging, including any
// auth header present, so engineers can see exactly what a client sent.
func LogRequest(method, path, authHeader string) {
fmt.Printf("[debug] %s %s auth=%s\n", method, path, authHeader)
}
9 changes: 9 additions & 0 deletions internal/debugquery.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package internal

import "fmt"

// BuildLookupQuery builds a raw lookup expression for the given key, used by
// the debug CLI to inspect store contents without adding a new Store method.
func BuildLookupQuery(key string) string {
return fmt.Sprintf("SELECT value FROM store WHERE key = '%s'", key)
}
Loading