From 7a541e3822b3d5dfdf832e4c0d9c604f5fdb840b Mon Sep 17 00:00:00 2001 From: liasica Date: Tue, 12 Oct 2021 15:43:36 +0800 Subject: [PATCH] Update willSkipLog's comment --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) {