Skip to content

Commit bfd4f9e

Browse files
committed
Linting warning fixed
1 parent eaaf330 commit bfd4f9e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

internal/logging/gin_middleware.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ func GinLogger() gin.HandlerFunc {
2020

2121
// Calculate latency
2222
latency := time.Since(start)
23-
23+
2424
// Get status code
2525
statusCode := c.Writer.Status()
26-
26+
2727
// Build the query string if present
2828
if raw != "" {
2929
path = path + "?" + raw
@@ -39,11 +39,11 @@ func GinLogger() gin.HandlerFunc {
3939
)
4040

4141
if statusCode >= 500 {
42-
Error(msg)
42+
Error("%s", msg)
4343
} else if statusCode >= 400 {
44-
Warn(msg)
44+
Warn("%s", msg)
4545
} else {
46-
Debug(msg) // HTTP requests are debug level
46+
Debug("%s", msg) // HTTP requests are debug level
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)