Add trace log for ignored api paths
This commit is contained in:
@@ -158,6 +158,7 @@ func HandleFunc(pattern string, handler http.HandlerFunc) {
|
|||||||
pattern = basePath + "/" + pattern
|
pattern = basePath + "/" + pattern
|
||||||
}
|
}
|
||||||
if allowPaths != nil && !slices.Contains(allowPaths, pattern) {
|
if allowPaths != nil && !slices.Contains(allowPaths, pattern) {
|
||||||
|
log.Trace().Str("path", pattern).Msg("[api] ignore path not in allow_paths")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Trace().Str("path", pattern).Msg("[api] register path")
|
log.Trace().Str("path", pattern).Msg("[api] register path")
|
||||||
|
|||||||
Reference in New Issue
Block a user