Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private BootstrapServer() {}
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");

public static Jex.Server start(Jex jex) {
long startTime = System.currentTimeMillis();
final var config = jex.config();
if (config.health()) {
jex.plugin(new HealthPlugin());
Expand Down Expand Up @@ -66,8 +67,9 @@ public static Jex.Server start(Jex jex) {
jex.lifecycle().status(AppLifecycle.Status.STARTED);
log.log(
INFO,
"Avaje Jex started {0} on {1}://{2}:{3,number,#}",
"Avaje Jex started {0} in {1}ms on {2}://{3}:{4,number,#}",
serverClass,
System.currentTimeMillis() - startTime,
scheme,
actualAddress.getHostName(),
actualAddress.getPort());
Expand All @@ -83,4 +85,4 @@ private static InetSocketAddress createSocketAddress(JexConfig config)
final var inetAddress = config.host() == null ? null : InetAddress.getByName(config.host());
return new InetSocketAddress(inetAddress, config.port());
}
}
}