Skip to content

Commit

Permalink
Use proper error level for Warnf (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnabialek authored Jan 20, 2024
1 parent f10fb3e commit c79228f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion record.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (r *Record) Warn(args ...any) { r.log(WarnLevel, args) }

// Warnf logs a message at level Warn
func (r *Record) Warnf(format string, args ...any) {
r.logf(ErrorLevel, format, args)
r.logf(WarnLevel, format, args)
}

// Notice logs a message at level Notice
Expand Down

0 comments on commit c79228f

Please sign in to comment.