-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: enable HTTP logging for cue login
The `cue login` command invokes oauth2 logic without hooking up the httplog transport. It seems consistent to enable HTTP logging whenever HTTP requests are made, so pass in the logging client in the context in `cue login` too. Make sure to elide bodies so we don't log the actual acquired tokens. Using a consistent HTTP transport everywhere will also make it easier to add a User-Agent header for all requests. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I698052c9047f183ab06de474efdadec02623e7cd Dispatch-Trailer: {"type":"trybot","CL":1178022,"patchset":3,"ref":"refs/changes/22/1178022/3","targetBranch":"master"}
- Loading branch information
Showing
2 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters