Closed portertech closed 4 years ago
It seems that https://github.com/sensu/sensu-go/pull/3623 fixed the inadvertent Resty output in the bonsai client, but not elsewhere in sensuctl
. For example, I'm still seeing resty output when connecting to a Sensu backend with sensuctl configure
.
$ sensuctl configure -n --url http://127.0.0.1:8080 \
--username admin \
--password "P@ssw0rd!" \
--namespace default
WARN[0000] Using Basic Auth in HTTP mode is not secure, use HTTPS component=cli-client
Should we reopen this issue to get this fixed, or open a new issue?
Use the sensuctl logger for the rest client output.
Feature Suggestion
Use the sensuctl logger for the rest client output. This will give the user control over the output and provide a consistent logging experience.
Possible Implementation
Go resty allows you to set the client logger, see: https://pkg.go.dev/github.com/go-resty/resty/v2?tab=doc#Client.SetLogger
Context
Sensu Go 5.18 users are experiencing
sensuctl
output like: