]> git.maquefel.me Git - brevno-suite/hugo/commit
Revise the deprecation logging
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 26 Oct 2023 07:38:13 +0000 (09:38 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 26 Oct 2023 18:41:19 +0000 (20:41 +0200)
commit71fd79a3f44101ef515349a24527e6c0b566f368
tree4bd1763b0b09a5767ee5501b6df298fd12efc6d2
parentc4a530f104f2b0d1dd82211b77b603a07db7c181
Revise the deprecation logging

This introduces a more automatic way of increasing the log levels for deprecation log statements based on the version it was deprecated.

The thresholds are a little arbitrary, but

* We log INFO for 6 releases
* We log WARN for another 6 releases
* THen ERROR (failing the build)

This should give theme authors plenty of time to catch up without having the log filled with warnings.
12 files changed:
commands/commandeer.go
common/hugo/hugo.go
common/hugo/hugo_test.go
common/hugo/version.go
config/allconfig/allconfig.go
helpers/general.go
hugolib/hugo_sites_build.go
hugolib/page__meta.go
hugolib/site_new.go
source/fileInfo.go
tpl/collections/collections.go
tpl/lang/lang.go