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 { try {
initInjector(arg, instrumentation, false); initInjector(arg, instrumentation, false);
} catch (InjectorInitializationException e) { } catch (InjectorInitializationException e) {
Logging.LAUNCH.log(Level.FINE, "A known exception has occurred", e);
System.exit(1); System.exit(1);
} catch (Throwable e) { } catch (Throwable e) {
Logging.LAUNCH.log(Level.SEVERE, "An exception has occurred, exiting", 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"); Logging.LAUNCH.info("Launched from agentmain");
initInjector(arg, instrumentation, true); initInjector(arg, instrumentation, true);
} catch (InjectorInitializationException e) { } catch (InjectorInitializationException e) {
; Logging.LAUNCH.log(Level.FINE, "A known exception has occurred", e);
} catch (Throwable e) { } catch (Throwable e) {
Logging.LAUNCH.log(Level.SEVERE, "An exception has occurred", e); Logging.LAUNCH.log(Level.SEVERE, "An exception has occurred", e);
} }