From 69b67dc2f9f5e0b79871c83865feef5a9a88c929 Mon Sep 17 00:00:00 2001 From: Moresteck Date: Fri, 4 Oct 2024 15:24:00 +0000 Subject: [PATCH] Removed debug messages from ResourceIndexHandler --- .../legacyfix/protocol/impl/ResourceIndexHandler.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/uk/betacraft/legacyfix/protocol/impl/ResourceIndexHandler.java b/src/main/java/uk/betacraft/legacyfix/protocol/impl/ResourceIndexHandler.java index 824e385..fee2efa 100644 --- a/src/main/java/uk/betacraft/legacyfix/protocol/impl/ResourceIndexHandler.java +++ b/src/main/java/uk/betacraft/legacyfix/protocol/impl/ResourceIndexHandler.java @@ -1,6 +1,7 @@ package uk.betacraft.legacyfix.protocol.impl; import uk.betacraft.legacyfix.LFLogger; +import uk.betacraft.legacyfix.LegacyFixAgent; import uk.betacraft.legacyfix.util.AssetUtils; import java.io.*; @@ -28,12 +29,13 @@ public InputStream getInputStream() throws IOException { if (this.isXmlRequest) { index = AssetUtils.generateXmlIndex(); - LFLogger.info("XML"); + if (LegacyFixAgent.isDebug()) + LFLogger.info("Serving XML resources index"); } else { index = AssetUtils.generateTxtIndex(); - LFLogger.info("TXT"); + if (LegacyFixAgent.isDebug()) + LFLogger.info("Serving TXT resources index"); } - LFLogger.info(index); this.stream = new ByteArrayInputStream(index.getBytes("UTF-8"));