Author: mriou
Date: Thu Feb  5 22:37:38 2009
New Revision: 741323

URL: http://svn.apache.org/viewvc?rev=741323&view=rev
Log:
Typo fix, SQL statements weren't logged anymore.

Modified:
    
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/LoggingInterceptor.java

Modified: 
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/LoggingInterceptor.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/LoggingInterceptor.java?rev=741323&r1=741322&r2=741323&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/LoggingInterceptor.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/utils/src/main/java/org/apache/ode/utils/LoggingInterceptor.java
 Thu Feb  5 22:37:38 2009
@@ -6,11 +6,7 @@
 import java.lang.reflect.Proxy;
 import java.sql.Connection;
 import java.sql.Statement;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-import java.util.TreeMap;
+import java.util.*;
 
 import javax.sql.DataSource;
 
@@ -77,13 +73,8 @@
        private void print(Method method, Object[] args) {
         if (shouldPrint()) {
                // JDBC Connection
-               if ("prepareStmt".equals(method.getName())) {
-                       print("prepareStmt: " + args[0]);
-                if (((String)args[0]).indexOf("ODE_SCOPE") > 0) {
-                    for (StackTraceElement traceElement : 
Thread.currentThread().getStackTrace()) {
-                        print(traceElement.toString());
-                    }
-                }
+               if ("prepareStatement".equals(method.getName())) {
+                       print("prepareStatement: " + args[0]);
                } else if ("prepareCall".equals(method.getName())) {
                        print("prepareCall: " + args[0]);
                } else if ("close".equals(method.getName())) {


Reply via email to