The old setup tried to log >= warning to stderr, the rest to stdout. However, that logic was flawed, so warnings ended up in stdout, which makes `hugo list all` etc. hard to reason about from scripts. This commit fixes this by making all logging (info, warn, error) log to stderr and let stdout be reserved for program output. Fixes #13074
11 lines
325 B
Text
11 lines
325 B
Text
hugo --printUnusedTemplates
|
|
|
|
stderr 'Template _default/list.html is unused'
|
|
|
|
-- hugo.toml --
|
|
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section", "page"]
|
|
baseURL = "https://example.org/"
|
|
-- layouts/index.html --
|
|
Home.
|
|
-- layouts/_default/list.html --
|
|
{{ errorf "unused template: %s" .Kind }}
|