mirror of https://github.com/gin-gonic/gin.git
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 {
|
func willSkipLog(path string, skip map[string]struct{}) bool {
|
||||||
for p := range skip {
|
for p := range skip {
|
||||||
if strings.HasPrefix(path, p[:len(p)-1]) {
|
if strings.HasPrefix(path, p[:len(p)-1]) {
|
||||||
|
|
Loading…
Reference in New Issue