You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/02/15 14:32:11 UTC

[GitHub] [cloudstack] nvazquez commented on a change in pull request #5983: Added a log line to HttpUploadServerHandler

nvazquez commented on a change in pull request #5983:
URL: https://github.com/apache/cloudstack/pull/5983#discussion_r806893326



##########
File path: services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java
##########
@@ -113,6 +113,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
     @Override
     public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Exception {
         if (msg instanceof HttpRequest) {
+            logger.trace(String.format("HTTP request: %s", msg));

Review comment:
       @DaanHoogland would you suggest wrapping it by `logger.isTraceEnabled()?

##########
File path: services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java
##########
@@ -113,6 +113,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
     @Override
     public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Exception {
         if (msg instanceof HttpRequest) {
+            logger.trace(String.format("HTTP request: %s", msg));

Review comment:
       @DaanHoogland would you suggest wrapping it by `logger.isTraceEnabled()`?




-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org