tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r980111 - /tomcat/trunk/java/org/apache/catalina/filters/ExpiresFilter.java
Date Wed, 28 Jul 2010 16:14:03 GMT
Author: markt
Date: Wed Jul 28 16:14:03 2010
New Revision: 980111

URL: http://svn.apache.org/viewvc?rev=980111&view=rev
Log:
Reduce log level for debug messages from error to debug

Modified:
    tomcat/trunk/java/org/apache/catalina/filters/ExpiresFilter.java

Modified: tomcat/trunk/java/org/apache/catalina/filters/ExpiresFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/filters/ExpiresFilter.java?rev=980111&r1=980110&r2=980111&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/filters/ExpiresFilter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/filters/ExpiresFilter.java Wed Jul 28 16:14:03 2010
@@ -1234,8 +1234,8 @@ public class ExpiresFilter extends Filte
         ExpiresConfiguration configuration = expiresConfigurationByContentType.get(contentType);
         if (configuration != null) {
             Date result = getExpirationDate(configuration, response);
-            if (log.isErrorEnabled()) {
-                log.error(sm.getString(
+            if (log.isDebugEnabled()) {
+                log.debug(sm.getString(
                         "expiresFilter.useMatchingConfiguration",
                         configuration, contentType, contentType, result));
             }
@@ -1249,8 +1249,8 @@ public class ExpiresFilter extends Filte
 
             if (configuration != null) {
                 Date result = getExpirationDate(configuration, response);
-                if (log.isErrorEnabled()) {
-                    log.error(sm.getString(
+                if (log.isDebugEnabled()) {
+                    log.debug(sm.getString(
                             "expiresFilter.useMatchingConfiguration",
                             configuration, contentTypeWithoutCharset,
                             contentType, result));
@@ -1265,8 +1265,8 @@ public class ExpiresFilter extends Filte
             configuration = expiresConfigurationByContentType.get(majorType);
             if (configuration != null) {
                 Date result = getExpirationDate(configuration, response);
-                if (log.isErrorEnabled()) {
-                    log.error(sm.getString(
+                if (log.isDebugEnabled()) {
+                    log.debug(sm.getString(
                             "expiresFilter.useMatchingConfiguration",
                             configuration, majorType, contentType, result));
                 }
@@ -1277,15 +1277,15 @@ public class ExpiresFilter extends Filte
         if (defaultExpiresConfiguration != null) {
             Date result = getExpirationDate(defaultExpiresConfiguration,
                     response);
-            if (log.isErrorEnabled()) {
-                log.error(sm.getString("expiresFilter.useDefaultConfiguration",
+            if (log.isDebugEnabled()) {
+                log.debug(sm.getString("expiresFilter.useDefaultConfiguration",
                         defaultExpiresConfiguration, contentType, result));
             }
             return result;
         }
 
-        if (log.isErrorEnabled()) {
-            log.error(sm.getString(
+        if (log.isDebugEnabled()) {
+            log.debug(sm.getString(
                     "expiresFilter.noExpirationConfiguredForContentType",
                     contentType));
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message