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