diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-07-15 12:24:20 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-07-15 12:24:20 +0200 |
commit | a70da2b74a6af0834cce9668cdb6acdb1c86a4c0 (patch) | |
tree | f2dfa88977abc2a827be92994cbe8b964d8457b5 /helpers | |
parent | 805664818d0e1f95a3474271c2db3e5f49db26ba (diff) | |
download | hugo-a70da2b74a6af0834cce9668cdb6acdb1c86a4c0.tar.gz hugo-a70da2b74a6af0834cce9668cdb6acdb1c86a4c0.zip |
Fix the deprecation error/warn log levels
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/general.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/general.go b/helpers/general.go index 09bf311f9..c5af83b66 100644 --- a/helpers/general.go +++ b/helpers/general.go @@ -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) } } |