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

Quiet mode #1218

Closed
hickford opened this issue Jun 19, 2015 · 4 comments
Closed

Quiet mode #1218

hickford opened this issue Jun 19, 2015 · 4 comments

Comments

@hickford
Copy link

Hi. Many apps have a quiet mode -q or --quiet that only prints in case of error. How about a quiet mode for Hugo? I'd find this useful for a cronjob.

@spf13
Copy link
Contributor

spf13 commented Nov 28, 2015

It wouldn't be hard to write. It's as simple as changing how JWW outputs things when --quiet is set... That said, it's easy enough to use the standard way of doing this >/dev/null 2>&1 which cron itself recommends to silence the output (by redirecting the output of your program to /dev/null)

@digitalcraftsman
Copy link
Member

@spf13 it isn't as easy at it seems. As discussed in the corresponding pull request (#2017) jww.FEEDBACK is used often but is completely independent from the log level and prints straight to the console. Quiet would mean that those messages would be suppressed. Only jww.ERROR and jww.FATAL should be shown.

@digitalcraftsman digitalcraftsman removed their assignment Sep 30, 2016
@bep bep closed this as completed in 1c214fc Oct 8, 2016
@bep bep added this to the v0.18 milestone Oct 8, 2016
@hickford
Copy link
Author

hickford commented Oct 8, 2016

Thanks. I've been using chronic as a workaround https://joeyh.name/code/moreutils/

tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
Needed to run benchmarks without the stats getting in the way of the benchmark stats.

Fixes gohugoio#1218
@github-actions
Copy link

github-actions bot commented Apr 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants