Skip to content

Commit 1a9cdd3

Browse files
committed
Add debug
1 parent b4fb7f4 commit 1a9cdd3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎gae-interop-testing/gae-jdk8/build.gradle‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ tasks.register("runInteropTestRemote") {
130130
def result1 = client.newCall(request).execute()
131131
def result2 = client.newCall(request).execute()
132132
if (result1.code() != 200 || result2.code() != 200) {
133+
project.println("result1 code: " + result1.code())
134+
try {
135+
project.println("result1 body: " + result1.body().string())
136+
} catch (Exception e) {
137+
project.println("Failed to read result1 body: " + e)
138+
}
139+
project.println("result2 code: " + result2.code())
140+
try {
141+
project.println("result2 body: " + result2.body().string())
142+
} catch (Exception e) {
143+
project.println("Failed to read result2 body: " + e)
144+
}
133145
throw new GradleException("Unable to reuse same channel across requests")
134146
}
135147

0 commit comments

Comments
 (0)