From: Bjørn Erik Pedersen Date: Thu, 15 Jul 2021 10:24:20 +0000 (+0200) Subject: Fix the deprecation error/warn log levels X-Git-Tag: v0.86.0~14 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a70da2b74a6af0834cce9668cdb6acdb1c86a4c0;p=brevno-suite%2Fhugo Fix the deprecation error/warn log levels --- diff --git a/helpers/general.go b/helpers/general.go index 09bf311f..c5af83b6 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) } }