Still print stacktrace when debug is on

This commit is contained in:
yushijinhun 2018-10-04 17:07:33 +08:00
parent e002f5f167
commit eebacfa567
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4

View file

@ -20,6 +20,7 @@ public class AuthlibInjectorPremain {
try {
initInjector(arg, instrumentation, false);
} catch (InjectorInitializationException e) {
Logging.LAUNCH.log(Level.FINE, "A known exception has occurred", e);
System.exit(1);
} catch (Throwable e) {
Logging.LAUNCH.log(Level.SEVERE, "An exception has occurred, exiting", e);
@ -32,7 +33,7 @@ public class AuthlibInjectorPremain {
Logging.LAUNCH.info("Launched from agentmain");
initInjector(arg, instrumentation, true);
} catch (InjectorInitializationException e) {
;
Logging.LAUNCH.log(Level.FINE, "A known exception has occurred", e);
} catch (Throwable e) {
Logging.LAUNCH.log(Level.SEVERE, "An exception has occurred", e);
}