diff --git a/src/main/java/wtf/beatrice/autosqueal/KeyPressListener.java b/src/main/java/wtf/beatrice/autosqueal/KeyPressListener.java index 7972a19..0570407 100644 --- a/src/main/java/wtf/beatrice/autosqueal/KeyPressListener.java +++ b/src/main/java/wtf/beatrice/autosqueal/KeyPressListener.java @@ -23,7 +23,7 @@ public class KeyPressListener implements NativeKeyListener try { GlobalScreen.unregisterNativeHook(); } catch (NativeHookException nativeHookException) { - nativeHookException.printStackTrace(); + LOGGER.error("Failed to unregister native hook", nativeHookException); } }