Skip to content

Commit

Permalink
[UNDERTOW-447] Debug message on mod_cluster MCMP handler creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karm committed May 28, 2015
1 parent 5d9e802 commit 7e91a9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.jboss.msc.value.InjectedValue;
import org.wildfly.extension.io.IOServices;
import org.wildfly.extension.undertow.UndertowService;
import org.wildfly.extension.undertow.logging.UndertowLogger;
import org.xnio.XnioWorker;

import io.undertow.predicate.Predicate;
Expand Down Expand Up @@ -132,7 +133,8 @@ public void handleRequest(HttpServerExchange exchange) throws Exception {
}
}
};
if(predicate != null) {
UndertowLogger.ROOT_LOGGER.modClusterMCMPHttpHandlerCreated();
if (predicate != null) {
return new PredicateHandler(predicate, theHandler, next);
} else {
return theHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import static org.jboss.logging.Logger.Level.ERROR;
import static org.jboss.logging.Logger.Level.INFO;
import static org.jboss.logging.Logger.Level.WARN;
import static org.jboss.logging.Logger.Level.DEBUG;

import java.io.File;
import java.net.InetSocketAddress;
Expand Down Expand Up @@ -304,12 +305,16 @@ public interface UndertowLogger extends BasicLogger {
void sharedSessionConfigNotInRootDeployment(String deployment);

@Message(id = 70, value = "Could not load handler %s from %s module")
RuntimeException couldNotLoadHandlerFromModule(String className,String moduleName, @Cause Exception e);
RuntimeException couldNotLoadHandlerFromModule(String className, String moduleName, @Cause Exception e);

@LogMessage(level = ERROR)
@Message(id = 71, value = "Jetty ALPN not found. HTTP2 and SPDY are not available. Please make sure Jetty ALPN is on the boot class path.")
void alpnNotFound();

@Message(id = 72, value = "Could not find configured external path %s")
DeploymentUnitProcessingException couldNotFindExternalPath(File path);

@LogMessage(level = DEBUG)
@Message(id = 73, value = "HttpHandler for mod_cluster MCMP created.")
void modClusterMCMPHttpHandlerCreated();
}

0 comments on commit 7e91a9e

Please sign in to comment.