-
Notifications
You must be signed in to change notification settings - Fork 4k
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
THRIFT-5744: Switch to slog for go library #2882
Conversation
2c1eaeb
to
0d89b7a
Compare
// | ||
// If this is not called before calling Serve, context.Background() will be | ||
// used. | ||
func (p *TSimpleServer) SetLogContext(ctx context.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I used the term LogContext
over BaseContext
here as I intend this context to only be used for logging.
if we use it as base context to create ctx that we pass into processors and eventually handlers, then whatever developers set on the ctx to control the logging of TSimpleServer will also end up in their service handlers, which is most likely not intended and could be a big surprise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable.
d2dadfc
to
ed416e1
Compare
bcbf152
to
10ba036
Compare
the go 1.22 github actions is not ready yet, will rerun github actions once that's ready. |
oh nevermind the new |
Client: go