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
1 changed files with 4 additions and 1 deletions

View File

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