Skip to content

Commit

Permalink
Removed debug messages from ResourceIndexHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Moresteck committed Oct 4, 2024
1 parent 7c1cabc commit 69b67dc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.*;
Expand Down Expand Up @@ -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"));

Expand Down

0 comments on commit 69b67dc

Please sign in to comment.