-
Notifications
You must be signed in to change notification settings - Fork 263
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
Introduce --debug and --verbose as global options #333
Comments
Should be tackled together with #182 IMO |
bazel is currently only used to parse test results, and doesn't build anything, thus all its settings are unnecessary (it works fine without them for our use case).
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
Related to this issue
|
In what area(s)?
Describe the feature:
Debugging and verbose output should be treated in a consistent way over all commands. Currently, we have
kn plugin list --verbose
as in refactor(plugins): Improved and simplified verifier and plugin list #313 for printing out plugin configurationkn service describe --details
as in feature(service describe): Output of service details #252 for showing additional service information--log-http
as a global option to track HTTP API communication coming in with Add --log-http option #326As there are supposed to be more such output modifying flags coming in over time, I suggest to use
--debug
and--verbose
with categories to fine tune this:--debug
for very low-level information. Only useful for developer ofkn
itself--verbose
option for increasing the detail level of the information presented. Examples arekn service describe --verbose
to add more details to a service (like the image digests, or all env vars/annotations/labels)kn plugin list --verbose
to also print the plugin directories where plugins are looked upkn service create --debug
to print also the HTTP headersIn order to tune debug and verbose output, I'd suggest to introduce categories:
--debug
--> all debug info--debug=all
--> all debug info--debug=http
--> only http related debugging--verbose
--> all verbose output--verbose=config
--> config related information, too--verbose=config,details
--> config information and details (made up here to show how to combine categories)This suggestion would introduce exactly two options,
--debug
and--verbose
(with the possible values shown in the help page). The alternative would be to have an extra option for every category like in--log-http
, but this would blow up the help pages and UX surface considerably over time.The text was updated successfully, but these errors were encountered: