Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show warning log when a deprecated config is used #5168

Open
t-kikuc opened this issue Aug 30, 2024 · 0 comments
Open

Show warning log when a deprecated config is used #5168

t-kikuc opened this issue Aug 30, 2024 · 0 comments
Labels
kind/enhancement New feature or request

Comments

@t-kikuc
Copy link
Member

t-kikuc commented Aug 30, 2024

What would you like to be added:

Show warning log like when loading deprecated configs [WARN Deprecated] 'Slack' is deprecated. Please use 'SlackUsers'/'SlackGroups' instead. See xxx for details..

deprecated fields (any other?):

cf. log like this:

$ make run/site
env RELEASE=v0.48.4 hugo server --source=docs
WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, use "taxonomy" instead.
ERROR deprecated: config: languages.en.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.129.0. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#c

Why is this needed:

To inform users that they should migrate before removing deprecated code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant