Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildlet: include details in GCEError.Error
Some of our logging in the coordinator includes pointers and repetition, like so: 2022/09/27 19:16:27 failed with errors: [0xc02b50e120] 2022/09/27 19:16:27 Failed to create VM: "failed with errors: [0xc02b50e120]". Retrying after 1 second (attempt: 2). The GCE error types only have MarshalJSON methods, so use that to show more information. (This builds on the previous attempt in CL 428114.) Remove the duplicate log, since the caller can log or otherwise handle the error. For golang/go#48857. Change-Id: I0d31cac833ea617b4d722751e3ffe9a6689aeb87 Reviewed-on: https://go-review.googlesource.com/c/build/+/435379 Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Jenny Rakoczy <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information