We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5562409 commit 1d6739bCopy full SHA for 1d6739b
internal/stdlog/stdlog.go
@@ -52,11 +52,11 @@ var HTTPErrorLog = slog.NewLogLogger(newFilterHandler(
52
), slog.LevelWarn)
53
54
func init() {
55
- http.HandleFunc("/debug/logs/on", func(w http.ResponseWriter, r *http.Request) {
+ http.HandleFunc("POST /debug/logs/on", func(w http.ResponseWriter, r *http.Request) {
56
logLevel.Set(slog.LevelDebug)
57
w.WriteHeader(http.StatusOK)
58
})
59
- http.HandleFunc("/debug/logs/off", func(w http.ResponseWriter, r *http.Request) {
+ http.HandleFunc("POST /debug/logs/off", func(w http.ResponseWriter, r *http.Request) {
60
logLevel.Set(slog.LevelInfo)
61
62
0 commit comments