mirror of
https://git.krews.org/morningstar/nitrowebsockets-for-ms
synced 2024-11-22 15:00:52 +01:00
Only debug line when debugging is enabled
This commit is contained in:
parent
ea20237166
commit
2a58b9cfc0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user