mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00

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
26 lines
314 B
Text
26 lines
314 B
Text
hugo --printPathWarnings
|
|
|
|
stderr 'Duplicate'
|
|
|
|
-- hugo.toml --
|
|
-- assets/css/styles.css --
|
|
body {
|
|
background-color: #000;
|
|
}
|
|
-- content/p1.md --
|
|
---
|
|
url: /p1/
|
|
---
|
|
-- content/p2.md --
|
|
---
|
|
url: /p1/
|
|
---
|
|
-- content/p3.md --
|
|
---
|
|
url: /p1/
|
|
---
|
|
-- layouts/index.html --
|
|
Home.
|
|
-- layouts/_default/single.html --
|
|
Single.
|
|
|