From 3af55a1c9e65acb15a2f0530423e8cc02e8a6550 Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Thu, 18 Jul 2024 14:08:37 -0500 Subject: [PATCH] Fix string comparison, fixes #89 --- src/main/java/loci/common/LogbackTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/loci/common/LogbackTools.java b/src/main/java/loci/common/LogbackTools.java index 4658379d..a8d062ca 100644 --- a/src/main/java/loci/common/LogbackTools.java +++ b/src/main/java/loci/common/LogbackTools.java @@ -69,7 +69,7 @@ public static synchronized boolean isEnabled() { Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME); LoggerContext loggerContext = root.getLoggerContext(); return (ConfigurationWatchListUtil.getMainWatchURL(loggerContext) != null - || (loggerContext.getProperty("caller") == CALLER)); + || (loggerContext.getProperty("caller").equals(CALLER))); } /**