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

hugo list all warnings are being sent to stdout #13074

Open
BrianLeishman opened this issue Nov 20, 2024 · 1 comment
Open

hugo list all warnings are being sent to stdout #13074

BrianLeishman opened this issue Nov 20, 2024 · 1 comment
Labels
Milestone

Comments

@BrianLeishman
Copy link

BrianLeishman commented Nov 20, 2024

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.136.0-DEV-5c212a5e39af88ba2acd4561b6bf14e75ee9665e+extended linux/amd64 BuildDate=2024-10-02T19:00:35Z

Does this issue reproduce with the latest release?

Yes


My issue is that I use hugo cmds for automations, and if those cmds give error/warning messages, they are also being directed towards stdout, instead of what I'd expect; stderr. For example:

$ hugo list all
WARN  Hugo front matter key "type" is overridden in params section.
You can suppress this warning by adding the following to your site configuration:
ignoreLogs = ['warning-frontmatter-params-overrides']
path,slug,title,date,expiryDate,publishDate,draft,permalink,kind,section

This extra output at the top is breaking my parsing the csv output of this command, and it would be very nice if it was in stderr instead.

@bep bep removed the NeedsTriage label Nov 20, 2024
@bep bep added this to the v0.138.0 milestone Nov 20, 2024
@bep
Copy link
Member

bep commented Nov 20, 2024

We should fix this, not sure what's the history here. You could do hugo list all --logLevel error as a workaround.

@bep bep modified the milestones: v0.138.0, v0.139.0, v0.140.0 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants