ldebello commented on a change in pull request #3886:
URL: https://github.com/apache/activemq-artemis/pull/3886#discussion_r778888771
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/ProtocolHandler.java
##########
@@ -152,7 +152,13 @@ public void channelRead(ChannelHandlerContext ctx, Object
msg) throws Exception
HttpHeaders headers = request.headers();
String upgrade = headers.get("upgrade");
if (upgrade != null && upgrade.equalsIgnoreCase("websocket")) {
- ctx.pipeline().addLast("websocket-handler", new
WebSocketServerHandler(websocketSubprotocolIds,
ConfigurationHelper.getIntProperty(TransportConstants.STOMP_MAX_FRAME_PAYLOAD_LENGTH,
TransportConstants.DEFAULT_STOMP_MAX_FRAME_PAYLOAD_LENGTH,
nettyAcceptor.getConfiguration())));
+ int stompMaxFramePayloadLength =
ConfigurationHelper.getIntProperty(TransportConstants.STOMP_MAX_FRAME_PAYLOAD_LENGTH,
-1, nettyAcceptor.getConfiguration());
+ if (stompMaxFramePayloadLength != -1) {
+
ActiveMQServerLogger.LOGGER.deprecatedConfigurationOption(TransportConstants.STOMP_MAX_FRAME_PAYLOAD_LENGTH);
Review comment:
sorry I meant which is the standard for logging things in artemis,
anyway if using that method is ok, great
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]