Skip to content

Commit 67ed359

Browse files
committed
DEV-516 improve logging of BLE Server - add exit code
1 parent 99c5d54 commit 67ed359

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/grpc/GrpcBLERadioByteTools.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ public int startServer() throws Exception {
145145
e.printStackTrace();
146146
}
147147
});
148+
runningProcess.onExit().thenAccept(p -> {
149+
int code = p.exitValue();
150+
System.err.println("[BLEGrpcServer] exited: code=" + code +
151+
(code >= 128 ? " (likely signal " + (code - 128) + ")" : ""));
152+
});
148153

149154
processThread.start();
150155
return port;

0 commit comments

Comments
 (0)