Skip to content

Commit

Permalink
Adding debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
franz1981 committed Nov 20, 2021
1 parent 8daaa18 commit 8ea7db9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/io/vertx/core/net/impl/transport/Transport.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,18 @@ public static Transport nativeTransport() {
// Jar not here
}
try {
System.err.println("try loading IO_URING...");
Transport ioUring = new IOUringTransport();
if (ioUring.isAvailable()) {
System.err.println("IO_URING available");
return ioUring;
} else {
System.err.println("IO_URING NOT available due to: " + ioUring.unavailabilityCause());
transport = ioUring;
}
} catch (Throwable ignore) {
System.err.println("JAR IO_URING NOT HERE...");
ignore.printStackTrace(System.err);
// Jar not here
}
try {
Expand Down
1 change: 1 addition & 0 deletions src/test/java/io/vertx/test/core/VertxTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void setUp() throws Exception {
boolean nativeTransport = options.getPreferNativeTransport();
vertx = vertx(options);
if (nativeTransport) {
assertNull(vertx.unavailableNativeTransportCause());
assertTrue(vertx.isNativeTransportEnabled());
}
}
Expand Down

0 comments on commit 8ea7db9

Please sign in to comment.