From 428f39baf196e18cd112b2b57d06717f05c62492 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 3 Sep 2017 14:53:02 +0200 Subject: [PATCH] Fixed debug messages that were not inside debug wrapped call. --- src/dorkbox/systemTray/SystemTray.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index a79afeb..1cd42da 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -863,8 +863,10 @@ class SystemTray { int trayImageSize = SizeAndScalingUtil.getTrayImageSize(); int menuImageSize = SizeAndScalingUtil.getMenuImageSize(trayType); - logger.debug("Tray indicator image size: {}", trayImageSize); - logger.debug("Tray menu image size: {}", menuImageSize); + if (DEBUG) { + logger.debug("Tray indicator image size: {}", trayImageSize); + logger.debug("Tray menu image size: {}", menuImageSize); + } if (AUTO_FIX_INCONSISTENCIES) { // this logic has to be before we create the system Tray, but after GTK is started (if applicable)