Revision: 18134
Author:   aschrijvers
Date:     2009-05-15 16:22:32 +0200 (Fri, 15 May 2009)
Log Message:
-----------
HSTTWO-432 better logging

Modified Paths:
--------------
    
ecm/site-toolkit/trunk/components/core/src/main/java/org/hippoecm/hst/core/container/ContextResolvingValve.java

Modified: 
ecm/site-toolkit/trunk/components/core/src/main/java/org/hippoecm/hst/core/container/ContextResolvingValve.java
===================================================================
--- 
ecm/site-toolkit/trunk/components/core/src/main/java/org/hippoecm/hst/core/container/ContextResolvingValve.java
     2009-05-15 14:15:38 UTC (rev 18133)
+++ 
ecm/site-toolkit/trunk/components/core/src/main/java/org/hippoecm/hst/core/container/ContextResolvingValve.java
     2009-05-15 14:22:32 UTC (rev 18134)
@@ -46,7 +46,7 @@
             matchedMapping = 
this.virtualHostsManager.getVirtualHosts().findMapping(hostName, 
baseURL.getServletPath() + baseURL.getPathInfo());   
             
((HstRequestContextImpl)requestContext).setMatchedMapping(matchedMapping);
             if (matchedMapping == null) {
-                throw new ContainerException("No host mapping for " + 
hostName);
+                throw new ContainerException("No proper configuration found 
for host : " + hostName);
             }
         }
         
@@ -74,7 +74,6 @@
         if (resolvedSiteMapItem == null) {
             throw new ContainerNotFoundException("No match for " + pathInfo);
         }
-        
         if (resolvedSiteMapItem.getStatusCode() > 0) {
             
             try {
@@ -82,6 +81,7 @@
                     log.debug("The resolved sitemap item for {} has error 
status: {}", pathInfo, resolvedSiteMapItem.getStatusCode());
                 }           
                 servletResponse.sendError(resolvedSiteMapItem.getStatusCode());
+                
             } catch (IOException e) {
                 if (log.isDebugEnabled()) {
                     log.warn("Exception invocation on sendError().", e);

_______________________________________________
Hippocms-svn mailing list
[email protected]
http://lists.hippo.nl/mailman/listinfo/hippocms-svn

Reply via email to