Skip to content
Permalink
Browse files

cleanup log about baseUri when deployed on non embedded server

  • Loading branch information
xhanin committed Feb 3, 2015
1 parent eb9a061 commit 7339bc26767de479624e223404c0c3e7294cc5f1
Showing with 10 additions and 3 deletions.
  1. +10 −3 restx-servlet/src/main/java/restx/servlet/RestxMainRouterServlet.java
@@ -53,9 +53,16 @@ public void init(ServletConfig config) throws ServletException {
}
}
if (!baseUri.isPresent()) {
logger.info("MINOR: baseUri cannot be found. Define it in restx.baseUri system property, or use Servlet 3+ API\n" +
"Note that is has no effect on restx behavior, it's just that it won't be able" +
" to properly display the startup banner.");
if (baseServer == null) {
// restx.baseServerUri is not set, we are most probably deployed on a server, not in embedded mode.
logger.debug("MINOR: baseUri cannot be found. Define it in restx.baseUri system property\n" +
"Note that is has no effect on restx behavior, it's just that it won't be able" +
" to properly display the startup banner.");
} else {
logger.info("MINOR: baseUri cannot be found. Define it in restx.baseUri system property, or use Servlet 3+ API\n" +
"Note that is has no effect on restx behavior, it's just that it won't be able" +
" to properly display the startup banner.");
}
}

serverId = Optional.fromNullable(

0 comments on commit 7339bc2

Please sign in to comment.
You can’t perform that action at this time.