Skip to content
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

[release-1.3] Make sd adapter less verbose on server error #16824

Conversation

istio-testing
Copy link
Collaborator

This is an automated cherry-pick of #16821

@istio-testing istio-testing requested a review from a team September 4, 2019 19:58
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Sep 4, 2019
@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 4, 2019
@bianpengyuan
Copy link
Contributor

/test istio-racetest-release-1.3

@bianpengyuan
Copy link
Contributor

@rlenglet Can you please approve this change to 1.3? Thanks!

@rlenglet
Copy link
Contributor

rlenglet commented Sep 4, 2019

/test istio-racetest-release-1.3

Copy link
Contributor

@rlenglet rlenglet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Just one typo. You may fix that later, it's not a big deal.

@@ -166,7 +167,12 @@ func (b *buffered) Send() {
if err != nil {
ets := handleError(err, timeSeries)
b.updateRetryBuffer(ets)
_ = b.l.Errorf("Stackdriver returned: %v\nGiven data: %v", err, timeSeries)
b.l.Errorf("%d time series was sent and Stackdriver returned: %v\n", len(timeSeries), err) // nolint: errcheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
b.l.Errorf("%d time series was sent and Stackdriver returned: %v\n", len(timeSeries), err) // nolint: errcheck
b.l.Errorf("%d time series were sent and Stackdriver returned: %v", len(timeSeries), err) // nolint: errcheck

no big deal... 🙂

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok thanks!

@bianpengyuan
Copy link
Contributor

/test e2e-mixer-no_auth-release-1.3
/test integ-framework-k8s-presubmit-tests-release-1.3

@istio-testing istio-testing merged commit b0aa8f5 into istio:release-1.3 Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants