version 3.0
This commit is contained in:
1 parent
0b7c1bfe4f
commit
09d0edddff
3 files changed
+5
-33
No files matched your search
@@ -29,13 +29,14 @@ import org.apache.logging.log4j.core.config.Configurator;
|
||||
|
||||
public class NetNeutrality {
|
||||
private static final Logger logger = LogManager.getLogger(NetNeutrality.class);
|
||||
public static final String VERSION = Settings.getInstance().getMavenVersion();
|
||||
public static final String VERSION = Settings.getVersion();
|
||||
private static NetNeutrality instance;
|
||||
private static JDA jda;
|
||||
|
||||
public static void main(String[] args) {
|
||||
String env = Settings.getInstance().get("NETNEUTRALITY_BOT_ENV", "dev");
|
||||
System.out.println("Starting NetNeutrality v" + VERSION);
|
||||
|
||||
String env = Settings.getInstance().get("NETNEUTRALITY_BOT_ENV", "dev");
|
||||
String sentryDsn = Settings.getInstance().get("NETNEUTRALITY_SENTRY_DSN");
|
||||
if (sentryDsn != null) {
|
||||
logger.info("Found Sentry DSN in config, setting up the SDK..");
|
||||
@@ -45,7 +46,7 @@ public class NetNeutrality {
|
||||
options.setEnvironment(env);
|
||||
options.setTracesSampleRate(1.0);
|
||||
options.setDebug(false);
|
||||
options.setRelease(Settings.getVersion());
|
||||
options.setRelease(VERSION);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user