Repository: tomee
Updated Branches:
  refs/heads/master 73d788ac3 -> 12e45af58


pmd


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/12e45af5
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/12e45af5
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/12e45af5

Branch: refs/heads/master
Commit: 12e45af586d8138c6ca73bb3711a90f763cb16ae
Parents: 73d788a
Author: Thiago Veronezi <[email protected]>
Authored: Sat Oct 28 06:01:42 2017 -0400
Committer: Thiago Veronezi <[email protected]>
Committed: Sat Oct 28 06:01:42 2017 -0400

----------------------------------------------------------------------
 .../org/apache/openejb/monitoring/StatsInterceptor.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/12e45af5/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java
----------------------------------------------------------------------
diff --git 
a/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java
 
b/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java
index cb5a890..5e93544 100644
--- 
a/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java
+++ 
b/container/openejb-core/src/main/java/org/apache/openejb/monitoring/StatsInterceptor.java
@@ -108,11 +108,11 @@ public class StatsInterceptor {
 
     @PostConstruct
     public void PostConstruct(final InvocationContext invocationContext) 
throws Exception {
-        long start = System.nanoTime();
+        final long start = System.nanoTime();
         record(invocationContext, PostConstruct());
-        long end = System.nanoTime();
+        final long end = System.nanoTime();
         Logger.getInstance(LogCategory.MONITORING, 
"org.apache.openejb.monitoring")
-                .info("instance.created", 
invocationContext.getTarget().getClass().getName(), end - start);
+                .debug("instance.created", 
invocationContext.getTarget().getClass().getName(), end - start);
     }
 
     public Method PreDestroy() throws NoSuchMethodException {
@@ -121,11 +121,11 @@ public class StatsInterceptor {
 
     @PreDestroy
     public void PreDestroy(final InvocationContext invocationContext) throws 
Exception {
-        long start = System.nanoTime();
+        final long start = System.nanoTime();
         record(invocationContext, PreDestroy());
-        long end = System.nanoTime();
+        final long end = System.nanoTime();
         Logger.getInstance(LogCategory.MONITORING, 
"org.apache.openejb.monitoring")
-                .info("instance.discarded", 
invocationContext.getTarget().getClass().getName(), end - start);
+                .debug("instance.discarded", 
invocationContext.getTarget().getClass().getName(), end - start);
     }
 
     public Method PostActivate() throws NoSuchMethodException {

Reply via email to