From d55817f4637c04fa0205c7d7edf0d67f82d3dfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Mon, 5 Aug 2024 19:25:21 +0200 Subject: [PATCH] Use logger instead of raw logging --- src/main/java/wtf/beatrice/autosqueal/KeyPressListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }