diff --git a/logger.go b/logger.go index 0cdda794..0e8f97a6 100644 --- a/logger.go +++ b/logger.go @@ -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]) {