mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 05:42:09 +08:00
Update willSkipLog's comment
This commit is contained in:
parent
38bd93dfb9
commit
7a541e3822
@ -274,7 +274,7 @@ func LoggerWithConfig(conf LoggerConfig) HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// willSkipLog if skip path is "attachments/", url like "attachments/producthunt/*" will be skipped
|
||||
// willSkipLog if skip path is "/attachments/", url like "/attachments/producthunt/*" will be skipped
|
||||
func willSkipLog(path string, skip map[string]struct{}) bool {
|
||||
for p := range skip {
|
||||
if strings.HasPrefix(path, p[:len(p)-1]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user