Skip to content

Commit

Permalink
more verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGrether committed Mar 4, 2024
1 parent 209b811 commit 577cb6a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dev.waterdog.waterdogpe.network.protocol.ProtocolCodecs;
import dev.waterdog.waterdogpe.plugin.Plugin;
import io.netty.incubator.codec.quic.Quic;
import org.nethergames.proxytransport.integration.QuicTransportServerInfo;
import org.nethergames.proxytransport.integration.TcpTransportServerInfo;
import org.nethergames.proxytransport.utils.CodecUpdater;
Expand All @@ -11,12 +12,16 @@ public class ProxyTransport extends Plugin {
@Override
public void onStartup() {
ProtocolCodecs.addUpdater(new CodecUpdater());
getLogger().info("Registered architecture: {} | {}", System.getProperty("os.name"), System.getProperty("os.arch"));

getLogger().info("System Properties: {}", System.getProperties().toString());
try {
Class.forName("io.netty.incubator.codec.quic.QuicheNativeStaticallyReferencedJniMethods");
Quic.ensureAvailability();
getLogger().info("QUIC is supported");
} catch (ClassNotFoundException e) {
} catch (Exception e) {
getLogger().info("QUIC is not supported / shading failed");
getLogger().error(e);
}

getLogger().info("ProxyTransport was started.");
Expand Down

0 comments on commit 577cb6a

Please sign in to comment.