Skip to content

Commit

Permalink
Merge pull request #44 from BugFixes/Virtual-branch
Browse files Browse the repository at this point in the history
refactor(logger): Update log level check to Info for status 200 response.
  • Loading branch information
Keloran authored May 13, 2024
2 parents 5186b6f + 007e7a2 commit 6af9841
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 6af9841

Please sign in to comment.