This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 59dda5b1 Added a log line to HttpUploadServerHandler (#5983)
59dda5b1 is described below
commit 59dda5b129e4fc08cf88c03703187c336e601fac
Author: JoaoJandre <[email protected]>
AuthorDate: Wed Feb 16 08:43:42 2022 -0300
Added a log line to HttpUploadServerHandler (#5983)
* Added a log line to HttpUploadServerHandler
* Removed \n
* Address review
Co-authored-by: dahn <[email protected]>
Co-authored-by: Joao <[email protected]>
Co-authored-by: dahn <[email protected]>
---
.../apache/cloudstack/storage/resource/HttpUploadServerHandler.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java
b/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java
index 69ebbd9..8b5fcc5 100644
---
a/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java
+++
b/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java
@@ -113,6 +113,9 @@ public class HttpUploadServerHandler extends
SimpleChannelInboundHandler<HttpObj
@Override
public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws
Exception {
if (msg instanceof HttpRequest) {
+ if (logger.isTraceEnabled()) {
+ logger.trace(String.format("HTTP request: %s", msg));
+ }
HttpRequest request = this.request = (HttpRequest) msg;
responseContent.setLength(0);