Only debug line when debugging is enabled

This commit is contained in:
Thijmen Stavenuiter 2021-01-21 11:05:11 +01:00
parent ea20237166
commit 2a58b9cfc0

View File

@ -59,7 +59,10 @@ public class WebSocketCodec extends MessageToMessageCodec<WebSocketFrame, ByteBu
if(origin.equals(entry)) return true; if(origin.equals(entry)) return true;
} }
} }
if(Emulator.getConfig().getBoolean("debug.mode")) {
LOGGER.info("Origin not allowed: " + origin); LOGGER.info("Origin not allowed: " + origin);
}
return false; return false;
} }
} }