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

add support to trace on grpc_logrus.DefaultMessageProducer #547

Conversation

peczenyj
Copy link
Contributor

today if I use the option grpc_logrus.WithLevels and set one or more codes to be logged on logrus.TraceLevel I can't see the messages.

The root cause is grpc_logrus.DefaultMessageProducer that ignores TraceLevel

possible workaround: use grpc_logrus.WithMessageProducer to set a callback that can hand Trace

this PR closes #546 546

@peczenyj peczenyj mentioned this pull request Mar 28, 2023
@johanbrandhorst johanbrandhorst merged commit 43a1474 into grpc-ecosystem:master Mar 28, 2023
6 of 7 checks passed
@johanbrandhorst
Copy link
Collaborator

Thanks for this! Can you check if v2 also suffers from this bug?

@peczenyj
Copy link
Contributor Author

Hello

the branch v2 seems heavily different on this part, but I will try to check

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.

callback grpc_logrus.DefaultMessageProduce ignores TraceLevel
2 participants