Skip to content

Commit

Permalink
Fix the deprecation error/warn log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 15, 2021
1 parent 8056648 commit a70da2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ func InitLoggers() {
// plenty of time to fix their templates.
func Deprecated(item, alternative string, err bool) {
if err {
DistinctErrorLog.Printf("%s is deprecated and will be removed in Hugo %s. %s", item, hugo.CurrentVersion.Next().ReleaseVersion(), alternative)
DistinctErrorLog.Errorf("%s is deprecated and will be removed in Hugo %s. %s", item, hugo.CurrentVersion.Next().ReleaseVersion(), alternative)
} else {
DistinctWarnLog.Printf("%s is deprecated and will be removed in a future release. %s", item, alternative)
DistinctWarnLog.Warnf("%s is deprecated and will be removed in a future release. %s", item, alternative)
}
}

Expand Down

0 comments on commit a70da2b

Please sign in to comment.