-
Notifications
You must be signed in to change notification settings - Fork 183
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
Clarify debugging examples with more comments #2330
Conversation
Motivation: Users unintentionally copy HTTP/2 configuration when they should debug only HTTP/1.1 and still ask questions why trace logs are not visible. Modifications: - Clarify 2nd and 3rd argument of `enableWireLogging` and `enableFrameLogging`; - Clarify that `HttpProtocolConfigs.h2()` is required only for HTTP/2; - Clarify how to `enableFrameLogging` in case of ALPN; Result: More comments for debugging examples.
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.
Nice refinements and clarifications!
...les/grpc/debugging/src/main/java/io/servicetalk/examples/grpc/debugging/DebuggingClient.java
Outdated
Show resolved
Hide resolved
...les/grpc/debugging/src/main/java/io/servicetalk/examples/grpc/debugging/DebuggingServer.java
Outdated
Show resolved
Hide resolved
@@ -28,6 +28,7 @@ | |||
<!-- Additional useful loggers of interest - include relevant loggers in your log4j2.xml file --> |
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.
Is this file needed since the example also has a dependency on test resources? Perhaps also make this change in test resources log4j.xml as well.
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.
I believe it's needed here. log4j.xml form test-resources is for tests purposes only, we don't want too much debug level logging there. In this example, it's useful to show what loggers they can enable for extra visibility.
…lk/examples/grpc/debugging/DebuggingClient.java Co-authored-by: Mike Duigou <[email protected]>
Co-authored-by: Mike Duigou <[email protected]>
Motivation:
Users unintentionally copy HTTP/2 configuration when they should debug
only HTTP/1.1 and still ask questions why trace logs are not visible.
Modifications:
enableWireLogging
andenableFrameLogging
;HttpProtocolConfigs.h2()
is required only for HTTP/2;enableFrameLogging
in case of ALPN;Result:
More comments for debugging examples.