Skip to content

Commit 259a946

Browse files
committed
Logger skip paths use Context.fullPath
This is more flexible and only leads to a behavior change in rare cases.
1 parent 90e7073 commit 259a946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func LoggerWithConfig(conf LoggerConfig) HandlerFunc {
233233
return func(c *Context) {
234234
// Start timer
235235
start := time.Now()
236-
path := c.Request.URL.Path
236+
path := c.FullPath()
237237
raw := c.Request.URL.RawQuery
238238

239239
// Process request

0 commit comments

Comments
 (0)