Added a log line to HttpUploadServerHandler (#5983)

* Added a log line to HttpUploadServerHandler

* Removed \n

* Address review

Co-authored-by: dahn <daan.hoogland@gmail.com>

Co-authored-by: Joao <JoaoJandre@gitlab.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
This commit is contained in:
JoaoJandre 2022-02-16 08:43:42 -03:00 committed by GitHub
parent d4f40ecc6a
commit 59dda5b129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);