Add trace log for ignored api paths

This commit is contained in:
Alex X
2025-11-11 15:43:49 +03:00
parent 44d59b1696
commit 2ce38b4486
+1
View File
@@ -158,6 +158,7 @@ func HandleFunc(pattern string, handler http.HandlerFunc) {
pattern = basePath + "/" + pattern
}
if allowPaths != nil && !slices.Contains(allowPaths, pattern) {
log.Trace().Str("path", pattern).Msg("[api] ignore path not in allow_paths")
return
}
log.Trace().Str("path", pattern).Msg("[api] register path")