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

Log unexpected tchannel system error #101

Merged
merged 2 commits into from
May 20, 2017
Merged

Log unexpected tchannel system error #101

merged 2 commits into from
May 20, 2017

Conversation

ChuntaoLu
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented May 18, 2017

Coverage Status

Coverage decreased (-0.02%) to 70.145% when pulling 4e0f987 on lu.log into dff0b03 on master.

@@ -177,6 +177,9 @@ func (s *TChannelRouter) handle(ctx context.Context, handler handler, service st
if er := reader.Close(); er != nil {
return errors.Wrapf(er, "could not close arg3reader for inbound call: %s::%s", service, method)
}
s.logger.Warn("Unexpected tchannel system error",
zap.String("error", err.Error()),
)
return call.Response().SendSystemError(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

we do not want to send the err out. We want to send a generic "Server Error" message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -177,6 +177,9 @@ func (s *TChannelRouter) handle(ctx context.Context, handler handler, service st
if er := reader.Close(); er != nil {
return errors.Wrapf(er, "could not close arg3reader for inbound call: %s::%s", service, method)
}
s.logger.Warn("Unexpected tchannel system error",
zap.String("error", err.Error()),
Copy link
Contributor

Choose a reason for hiding this comment

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

we should log the thrift service and the thrift method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@coveralls
Copy link

coveralls commented May 19, 2017

Coverage Status

Coverage decreased (-0.02%) to 70.145% when pulling 97f3777 on lu.log into dff0b03 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants