Skip to content

Commit

Permalink
refactor(logger): Update log level check to Info for status 200 respo…
Browse files Browse the repository at this point in the history
…nse.
  • Loading branch information
Keloran committed May 13, 2024
1 parent 5186b6f commit 007e7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (l *defaultLogEntry) Write(status, bytes int, elapsed time.Duration) {
}

if status == 200 {
if l.LogLevel <= Error {
if l.LogLevel <= Info {
l.Logger.Print(l.buf.String())
}
} else {
Expand Down

0 comments on commit 007e7a2

Please sign in to comment.