diff --git a/src/main/java/org/bdware/server/nodecenter/FileActions.java b/src/main/java/org/bdware/server/nodecenter/FileActions.java index cebb699..c0ca4c3 100644 --- a/src/main/java/org/bdware/server/nodecenter/FileActions.java +++ b/src/main/java/org/bdware/server/nodecenter/FileActions.java @@ -53,9 +53,8 @@ public class FileActions { method = org.bdware.server.http.HttpMethod.POST, value = {"/upload"}) public static void handleUploadRequest(ChannelHandlerContext ctx, FullHttpRequest request) { - // logger.info("[CMHttpHandler] handleUploadRequest : "); + LOGGER.info("[FileActions] handleUploadRequest : "); // Upload method is POST - QueryStringDecoder decoderQuery = new QueryStringDecoder(request.uri()); Map> params = decoderQuery.parameters(); Map transformedParam = new HashMap<>(); diff --git a/src/main/java/org/bdware/server/nodecenter/NCHttpHandler.java b/src/main/java/org/bdware/server/nodecenter/NCHttpHandler.java index 62b14a0..c14d4bd 100644 --- a/src/main/java/org/bdware/server/nodecenter/NCHttpHandler.java +++ b/src/main/java/org/bdware/server/nodecenter/NCHttpHandler.java @@ -86,7 +86,8 @@ public class NCHttpHandler extends SimpleChannelInboundHandler { return flag && flag2; } }; - static TypeToken> token = new TypeToken>() {}; + static TypeToken> token = new TypeToken>() { + }; private final HttpFileHandleAdapter fileAdapter; // public static ExecutorService executor = Executors.newFixedThreadPool(5); public AtomicInteger counter = new AtomicInteger(0); @@ -196,8 +197,8 @@ public class NCHttpHandler extends SimpleChannelInboundHandler { @Override public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) { - // logger.debug("[NCHttpHandler] TID:" + Thread.currentThread().getId() + - // msg.toString()); + LOGGER.debug("[NCHttpHandler] TID:" + Thread.currentThread().getId() + + msg.toString()); if (msg instanceof FullHttpRequest) { FullHttpRequest request = (FullHttpRequest) msg; handler.handle(ctx, request);