package com.tinkerpop.gremlin.server.channel;

import com.tinkerpop.gremlin.server.AbstractChannelizer;
import com.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.http.HttpServerCodec;

/**
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
public class HttpChannelizer extends AbstractChannelizer {

    @Override
    public void configure(final ChannelPipeline pipeline) {
        pipeline.addLast("http-server", new HttpServerCodec());
        pipeline.addLast(gremlinGroup, "http-gremlin-handler", new HttpGremlinEndpointHandler(serializers, gremlinExecutor));
    }

    @Override
    public void finalize(final ChannelPipeline pipeline) {
        pipeline.remove(PIPELINE_OP_SELECTOR);
        pipeline.remove(PIPELINE_RESULT_ITERATOR_HANDLER);
        pipeline.remove(PIPELINE_OP_EXECUTOR);
    }
}

@@ -266,273 +266,739 @@
 ec;%0A
-%0A/**%0A * @author Stephen Mallette (http://stephen.genoprime.com)%0A */%0Apublic class HttpChannelizer extends AbstractChannelizer %7B%0A%0A    @Override%0A    public void configure(final ChannelPipeline pipeline) %7B%0A        pipeline.addLast(%22http-server%22, new HttpServerCodec());
+import io.netty.handler.logging.LogLevel;%0Aimport io.netty.handler.logging.LoggingHandler;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A * @author Stephen Mallette (http://stephen.genoprime.com)%0A */%0Apublic class HttpChannelizer extends AbstractChannelizer %7B%0A    private static final Logger logger = LoggerFactory.getLogger(HttpChannelizer.class);%0A%0A    @Override%0A    public void configure(final ChannelPipeline pipeline) %7B%0A        if (logger.isDebugEnabled())%0A            pipeline.addLast(new LoggingHandler(%22log-io%22, LogLevel.DEBUG));%0A%0A        pipeline.addLast(%22http-server%22, new HttpServerCodec());%0A%0A        if (logger.isDebugEnabled())%0A            pipeline.addLast(new LoggingHandler(%22http-io%22, LogLevel.DEBUG));%0A
 %0A   

Add logging to HttpChannerlizer.