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));
}
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));
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));
}
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));
}