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 · 3 comments

Comments

Projects
None yet
4 participants
@hickford

hickford commented Jun 19, 2015

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

This comment has been minimized.

Show comment
Hide comment
@spf13

spf13 Nov 28, 2015

Contributor

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)

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

This comment has been minimized.

Show comment
Hide comment
@digitalcraftsman

digitalcraftsman Apr 10, 2016

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.

Member

digitalcraftsman commented Apr 10, 2016

@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 in 1c214fc Oct 8, 2016

@bep bep added this to the v0.18 milestone Oct 8, 2016

@hickford

This comment has been minimized.

Show comment
Hide comment
@hickford

hickford Oct 8, 2016

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

hickford commented Oct 8, 2016

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

tychoish added a commit to tychoish/hugo that referenced this issue Aug 13, 2017

Add quiet mode
Needed to run benchmarks without the stats getting in the way of the benchmark stats.

Fixes #1218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment