X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;h=e0bd8044d8edac5b62c45ec9e6490d73136632c2;hp=be4ce4ea84055d4eab01d2834040434fe539bce1;hb=49872c388489260aa2e4ecd42dfda1aaebb8d2db;hpb=d10c5a45303f4d128f482ff0d26eb08770a247d8 diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index be4ce4e..e0bd804 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -37,6 +37,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.*; import java.util.logging.Level; import java.util.logging.Logger; @@ -120,7 +121,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, /** The start time. */ private final long startupTime = System.currentTimeMillis(); - private final DebugInformation debugInformation = new DebugInformation(); + private final AtomicBoolean debug = new AtomicBoolean(false); /** The preferences. */ private final Preferences preferences; @@ -230,8 +231,8 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, } @Nonnull - public DebugInformation getDebugInformation() { - return debugInformation; + public boolean getDebug() { + return debug.get(); } /**