You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2019/10/30 17:52:21 UTC
[tomcat] 02/02: Log tweaks
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit d97f33b259dc6b74c54ec35127ad5b3d39637863
Author: remm <re...@apache.org>
AuthorDate: Wed Oct 30 18:49:35 2019 +0100
Log tweaks
---
java/org/apache/coyote/AbstractProtocol.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/coyote/AbstractProtocol.java b/java/org/apache/coyote/AbstractProtocol.java
index 3c06d91..be2bd40 100644
--- a/java/org/apache/coyote/AbstractProtocol.java
+++ b/java/org/apache/coyote/AbstractProtocol.java
@@ -998,7 +998,9 @@ public abstract class AbstractProtocol<S> implements ProtocolHandler,
// processors
if (!processor.isUpgrade()) {
recycledProcessors.push(processor);
- getLog().debug("Pushed Processor [" + processor + "]");
+ if (getLog().isDebugEnabled()) {
+ getLog().debug("Pushed Processor [" + processor + "]");
+ }
}
}
}
@@ -1056,7 +1058,7 @@ public abstract class AbstractProtocol<S> implements ProtocolHandler,
rp.setGlobalProcessor(null);
ObjectName rpName = rp.getRpName();
if (getLog().isDebugEnabled()) {
- getLog().debug("Unregister " + rpName);
+ getLog().debug("Unregister [" + rpName + "]");
}
Registry.getRegistry(null, null).unregisterComponent(
rpName);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org