Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Suppress task logging for help and version actions #127

Closed
exogen opened this issue Aug 27, 2016 · 1 comment
Closed

Suppress task logging for help and version actions #127

exogen opened this issue Aug 27, 2016 · 1 comment

Comments

@exogen
Copy link
Contributor

exogen commented Aug 27, 2016

This is very excessive:

$ builder -v
[builder:config:environment] {"cwd":"/Users/brianbeck/Projects/Tests/test-builder-log","dir":"/Users/brianbeck/Projects/Formidable/builder/lib"}
[builder:config] Unable to load config file: .builderrc
[builder:local-detect] Switched to local builder at: /Users/brianbeck/Projects/Tests/test-builder-log/node_modules/builder/bin/builder-core.js
[builder:builder-core:start:15907] Started: version
3.0.0-beta.1
[builder:builder-core:end:15907] Task: version ended normally

...and help would be nicer without the surrounding noise as well. For -v/version this can be overridden with --log-level or --quiet, but you can't do the same with help.

Even though builder runs version and help as tasks like any other, that's an implementation detail and IMO the CLI would be nicer (and much more like other tools) without the noise.

@ryan-roemer
Copy link
Member

Agreed. We can probably even do this at the args.js level, maybe do log-level critical if not otherwise set from CLI to effectively suppress?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants