Rename LoggingThread#startLoggingThread method
This commit is contained in:
parent
e21ea102c7
commit
c9bf6126a0
4 changed files with 5 additions and 4 deletions
|
@ -344,7 +344,7 @@ public final class Engine extends SubsystemClass {
|
||||||
public void startThreads() {
|
public void startThreads() {
|
||||||
logger.diag("Starting threads");
|
logger.diag("Starting threads");
|
||||||
|
|
||||||
LoggingThread.startLoggingThread();
|
LoggingThread.startThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -328,7 +328,7 @@ public final class EngineConfiguration extends Configuration {
|
||||||
|
|
||||||
// Start logging thread automatically
|
// Start logging thread automatically
|
||||||
if (optimizeLogging && Engine.getInstance().getState() == EngineState.RUNNING)
|
if (optimizeLogging && Engine.getInstance().getState() == EngineState.RUNNING)
|
||||||
LoggingThread.startLoggingThread();
|
LoggingThread.startThread();
|
||||||
}
|
}
|
||||||
case "optimizeEvents" -> optimizeEvents = parser.getBoolean(group + property);
|
case "optimizeEvents" -> optimizeEvents = parser.getBoolean(group + property);
|
||||||
case "optimizeSubsystemInitialization" -> optimizeSubsystemInitialization = parser.getBoolean(group + property);
|
case "optimizeSubsystemInitialization" -> optimizeSubsystemInitialization = parser.getBoolean(group + property);
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
* @param issuerOrigin Origin of the issuer.
|
* @param issuerOrigin Origin of the issuer.
|
||||||
* @param issuerMetadata Metadata about the issuer.
|
* @param issuerMetadata Metadata about the issuer.
|
||||||
* @param message Message of the log call.
|
* @param message Message of the log call.
|
||||||
* @see LoggingThread#startLoggingThread()
|
* @see LoggingThread#startThread()
|
||||||
* @since v1-alpha1
|
* @since v1-alpha1
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
|
|
|
@ -103,9 +103,10 @@ public class LoggingThread {
|
||||||
* Starts the logging thread.
|
* Starts the logging thread.
|
||||||
*
|
*
|
||||||
* @since v1-alpha4
|
* @since v1-alpha4
|
||||||
|
* @throws IllegalStateException if thread reconstruction fails because the thread isn't {@link Thread.State#TERMINATED}, see {@link #reconstructThread()}
|
||||||
* @see #loggingThread
|
* @see #loggingThread
|
||||||
*/
|
*/
|
||||||
public static void startLoggingThread() {
|
public static void startThread() {
|
||||||
if (loggingThread == null)
|
if (loggingThread == null)
|
||||||
reconstructThread();
|
reconstructThread();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue