package com.jivesoftware.os.routing.bird.session;

import javax.ws.rs.container.ContainerRequestContext;

import static org.eclipse.jetty.io.SelectChannelEndPoint.LOG;

/**
 *
 */
public class DryRunSessionValidator implements SessionValidator {

    private final SessionValidator delegate;

    public DryRunSessionValidator(SessionValidator delegate) {
        this.delegate = delegate;
    }

    @Override
    public boolean isAuthenticated(ContainerRequestContext requestContext) throws SessionValidationException {
        String id = delegate.getId(requestContext);
        try {
            boolean valid = delegate.isAuthenticated(requestContext);
            if (valid) {
                LOG.info("Dry run validation passed for id:{}", id);
            } else {
                LOG.info("Dry run validation failed for id:{}", id);
            }
        } catch (Exception x) {
            LOG.warn("Dry run validation failed for id:{}", new Object[] { id }, x);
        }
        return true;
    }

    @Override
    public String getId(ContainerRequestContext requestContext) {
        return delegate.getId(requestContext);
    }
}

@@ -55,116 +55,168 @@
 ort 
-javax.ws.rs.container.ContainerRequestContext;%0A%0Aimport static org.eclipse.jetty.io.SelectChannelEndPoint.LOG
+com.jivesoftware.os.mlogger.core.MetricLogger;%0Aimport com.jivesoftware.os.mlogger.core.MetricLoggerFactory;%0Aimport javax.ws.rs.container.ContainerRequestContext
 ;%0A%0A/
@@ -292,16 +292,94 @@
 ator %7B%0A%0A
+    private static final MetricLogger LOG = MetricLoggerFactory.getLogger();%0A%0A
     priv

fix logger in dry run session validator