This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 266ca4a258 Raise log level for missing configuration
266ca4a258 is described below
commit 266ca4a2580439f357266ef7fe173bbf592a7844
Author: remm <[email protected]>
AuthorDate: Mon Nov 10 21:21:01 2025 +0100
Raise log level for missing configuration
Although not an error, it could be unintended and is not visible right
now.
BZ69871
---
java/org/apache/catalina/valves/rewrite/RewriteValve.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/java/org/apache/catalina/valves/rewrite/RewriteValve.java
b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
index 9a4b0c3968..328f78d431 100644
--- a/java/org/apache/catalina/valves/rewrite/RewriteValve.java
+++ b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
@@ -159,10 +159,12 @@ public class RewriteValve extends ValveBase {
context = true;
String webInfResourcePath = "/WEB-INF/" + resourcePath;
is = ((Context)
getContainer()).getServletContext().getResourceAsStream(webInfResourcePath);
- if (containerLog.isDebugEnabled()) {
- if (is == null) {
-
containerLog.debug(sm.getString("rewriteValve.noConfiguration",
webInfResourcePath));
- } else {
+ if (is == null) {
+ if (containerLog.isInfoEnabled()) {
+
containerLog.info(sm.getString("rewriteValve.noConfiguration",
webInfResourcePath));
+ }
+ } else {
+ if (containerLog.isDebugEnabled()) {
containerLog.debug(sm.getString("rewriteValve.readConfiguration",
webInfResourcePath));
}
}
@@ -172,8 +174,8 @@ public class RewriteValve extends ValveBase {
ConfigurationSource.Resource resource =
ConfigFileLoader.getSource().getResource(resourceName);
is = resource.getInputStream();
} catch (IOException ioe) {
- if (containerLog.isDebugEnabled()) {
-
containerLog.debug(sm.getString("rewriteValve.noConfiguration", resourceName),
ioe);
+ if (containerLog.isInfoEnabled()) {
+
containerLog.info(sm.getString("rewriteValve.noConfiguration", resourceName),
ioe);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]