This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experiment shows that `%w` does not invoke the `Error() string` method that the error type provides for proper struct formatting. When using it in status message or logger, we will get sth like: ``` - lastTransitionTime: "2020-09-09T13:23:24Z" message: 'Failed to verify Pub/Sub topic exists: %!w(*status.Error=&{0xc0024ffe60})' reason: TopicVerificationFailed ``` After the fix, it will show as: ``` - lastTransitionTime: "2020-09-09T14:13:41Z" message: |- Failed to verify Pub/Sub topic exists: rpc error: code = Unauthenticated desc = transport: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Invalid JWT Signature."} reason: TopicVerificationFailed ```
- Loading branch information
Zhongduo Lin (Jimmy)
authored
Sep 9, 2020
1 parent
f84ca97
commit 3ed2eff
Showing
5 changed files
with
26 additions
and
26 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
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
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