Commit f6457cbb authored by Van's avatar Van

Merge remote-tracking branch 'origin/3.4.0-dev' into 3.4.0-dev

parents 54fe8d91 406fb340
......@@ -89,6 +89,14 @@ public final class SoloServletListener extends AbstractServletListener {
routeConsoleProcessors();
Stopwatchs.start("Context Initialized");
final Latkes.RuntimeDatabase runtimeDatabase = Latkes.getRuntimeDatabase();
final Latkes.RuntimeMode runtimeMode = Latkes.getRuntimeMode();
final String jdbcUsername = Latkes.getLocalProperty("jdbc.username");
final String jdbcURL = Latkes.getLocalProperty("jdbc.URL");
LOGGER.log(Level.INFO, "Solo is booting [pid=" + Solos.currentPID() + ", runtimeDatabase=" + runtimeDatabase + ", runtimeMode=" + runtimeMode +
", jdbc.username=" + jdbcUsername + ", jdbc.URL=" + jdbcURL + "]");
validateSkin();
final InitService initService = beanManager.getReference(InitService.class);
......
......@@ -54,7 +54,7 @@ import java.util.ResourceBundle;
* Solo utilities.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.7.0.3, Mar 10, 2019
* @version 1.8.0.0, Mar 20, 2019
* @since 2.8.0
*/
public final class Solos {
......@@ -139,6 +139,17 @@ public final class Solos {
COOKIE_HTTP_ONLY = Boolean.valueOf(Latkes.getLocalProperty("cookieHttpOnly"));
}
/**
* Gets the current process's id.
*
* @return the current process's id
*/
public static long currentPID() {
final String processName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
return Long.parseLong(processName.split("@")[0]);
}
/**
* Constructs a successful result.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment