Skip to content

Commit

Permalink
Add logging for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idelpivnitskiy committed Oct 13, 2023
1 parent 66c080f commit 6713504
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions servicetalk-http-netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,9 @@ task testProps(type: Test) {
test.dependsOn testProps
// ServiceTalkLibraryPlugin adds a spotbugs task for each sourceSet, we don't need it.
spotbugsTestProps.enabled = false

tasks.withType(Test).all {
testLogging {
showStandardStreams = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public final void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
cause = wrapIfNecessary(cause);
parentContext.transportError.onSuccess(cause);
if (!tryFailSubscriber(cause)) {
LOGGER.debug("{} closing h2 parent channel on exception caught", parentContext.nettyChannel(), cause);
LOGGER.error("{} closing h2 parent channel on exception caught", parentContext.nettyChannel(), cause);
ChannelCloseUtils.close(ctx, cause);
}
}
Expand Down

0 comments on commit 6713504

Please sign in to comment.