From e6fa4dabbf1932b3bb98f93301b26fc14d2d059a Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Wed, 13 May 2020 00:12:28 +0300 Subject: [PATCH] change println() to LOG calls --- src/net/azib/ipscan/gui/GUI.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/azib/ipscan/gui/GUI.java b/src/net/azib/ipscan/gui/GUI.java index bbe682aa..26efc5d7 100644 --- a/src/net/azib/ipscan/gui/GUI.java +++ b/src/net/azib/ipscan/gui/GUI.java @@ -70,17 +70,17 @@ public class GUI implements AutoCloseable { Class os = Class.forName("org.eclipse.swt.internal.cocoa.OS"); Boolean isDarkMode = (Boolean) os.getMethod("isSystemDarkAppearance").invoke(null); Boolean isAppDarkAppearance = (Boolean) os.getMethod("isAppDarkAppearance").invoke(null); - System.err.println("Dark appearance flags before: " + isDarkMode + ", " + isAppDarkAppearance); + LOG.info("Dark appearance flags before: " + isDarkMode + ", " + isAppDarkAppearance); if (isDarkMode && !isAppDarkAppearance) { os.getMethod("setTheme", boolean.class).invoke(null, isDarkMode); isDarkMode = (Boolean) os.getMethod("isSystemDarkAppearance").invoke(null); isAppDarkAppearance = (Boolean) os.getMethod("isAppDarkAppearance").invoke(null); - System.err.println("Dark appearance flags after: " + isDarkMode + ", " + isAppDarkAppearance); + LOG.info("Dark appearance flags after: " + isDarkMode + ", " + isAppDarkAppearance); // workaround for a bug in SWT: colors need to be reinited after changing the appearance Method initColors = display.getClass().getDeclaredMethod("initColors"); initColors.setAccessible(true); initColors.invoke(display); - System.err.println("initColors called"); + LOG.info("initColors called"); } } catch (Exception e) {