Skip to content

Commit c02746a

Browse files
author
Dhriti Chopra
committed
Adding more debugging
1 parent e754481 commit c02746a

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry

java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry/TestBench.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ public void start() {
294294
"gunicorn",
295295
"--bind=0.0.0.0:9000",
296296
"--worker-class=sync",
297-
"--threads=10",
298-
"--access-logfile=-",
297+
"--threads=15",
298+
"--access-logfile=-",
299299
"--keep-alive=0",
300300
"testbench:run()");
301301
process =
@@ -361,8 +361,14 @@ public void stop() {
361361
int processExitValue = process.exitValue();
362362
if (processExitValue != 0) {
363363
attemptForceStopContainer = true;
364+
LOGGER.warn("Container exit value = {}", processExitValue);
365+
try {
366+
dumpServerLogs(outPath, errPath);
367+
} catch (Exception ignore) {
368+
}
369+
} else {
370+
LOGGER.warn("Container exit value = {}", processExitValue);
364371
}
365-
LOGGER.warn("Container exit value = {}", processExitValue);
366372
} catch (IllegalThreadStateException e) {
367373
attemptForceStopContainer = true;
368374
}

0 commit comments

Comments
 (0)