empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1209902 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
Date Sat, 03 Dec 2011 12:36:35 GMT
Author: doebele
Date: Sat Dec  3 12:36:34 2011
New Revision: 1209902

URL: http://svn.apache.org/viewvc?rev=1209902&view=rev
Log:
EMPIREDB-126
adjusted log levels on DBDatabase debug for read-logging, info for write-logging

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java?rev=1209902&r1=1209901&r2=1209902&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
Sat Dec  3 12:36:34 2011
@@ -696,8 +696,7 @@ public abstract class DBDatabase extends
             // No Value
             Object result = rs.getObject(1);
             if (log.isDebugEnabled())
-	            log.debug("querySingleValue complete in " + (System.currentTimeMillis() - start)
+ " ms -> value="
-	                        + result);
+	            log.debug("querySingleValue complete in " + (System.currentTimeMillis() - start)
+ " ms -> value=" + result);
             return result;
         } catch (SQLException sqle) 
         {   // Error
@@ -832,8 +831,8 @@ public abstract class DBDatabase extends
         try
         {   // Log performance
             long start = System.currentTimeMillis();
-            if (log.isInfoEnabled())
-                log.info("executing: " + sqlCmd);
+            if (log.isDebugEnabled())
+                log.debug("executing: " + sqlCmd);
             // Get the next Value
             rs = driver.executeQuery(sqlCmd, null, false, conn);
             if (rs == null)
@@ -847,8 +846,8 @@ public abstract class DBDatabase extends
                 count++;
             }
             // No Value
-            if (log.isInfoEnabled())
-                log.info("querySimpleList retured " + count + " items. Query completed in
" + (System.currentTimeMillis() - start) + " ms");
+            if (log.isDebugEnabled())
+                log.debug("querySimpleList retured " + count + " items. Query completed in
" + (System.currentTimeMillis() - start) + " ms");
             return count;
         } catch (ClassCastException e) 
         {   log.error("querySingleValue cast exception: ", e);
@@ -909,8 +908,8 @@ public abstract class DBDatabase extends
         try
         {   // Debug
             long start = System.currentTimeMillis();
-            if (log.isInfoEnabled())
-                log.info("executing: " + sqlCmd);
+            if (log.isDebugEnabled())
+                log.debug("executing: " + sqlCmd);
             // Get the next Value
             rs = driver.executeQuery(sqlCmd, null, false, conn);
             if (rs == null)
@@ -927,8 +926,8 @@ public abstract class DBDatabase extends
                 count++;
             }
             // No Value
-            if (log.isInfoEnabled())
-                log.info("queryOptionList retured " + count + " items. Query completed in
" + (System.currentTimeMillis() - start) + " ms");
+            if (log.isDebugEnabled())
+                log.debug("queryOptionList retured " + count + " items. Query completed in
" + (System.currentTimeMillis() - start) + " ms");
             return count;
         } catch (SQLException sqle) 
         {   // Error
@@ -971,8 +970,8 @@ public abstract class DBDatabase extends
         try
         {   // Log performance
             long start = System.currentTimeMillis();
-            if (log.isInfoEnabled())
-                log.info("executing: " + sqlCmd);
+            if (log.isDebugEnabled())
+                log.debug("executing: " + sqlCmd);
             // Get the next Value
             rs = driver.executeQuery(sqlCmd, null, false, conn);
             if (rs == null)
@@ -991,8 +990,8 @@ public abstract class DBDatabase extends
                 count++;
             }
             // No Value
-            if (log.isInfoEnabled())
-                log.info("queryObjectList retured " + count + " items. Query completed in
" + (System.currentTimeMillis() - start) + " ms");
+            if (log.isDebugEnabled())
+                log.debug("queryObjectList retured " + count + " items. Query completed in
" + (System.currentTimeMillis() - start) + " ms");
             return count;
         } catch (SQLException sqle) 
         {   // Error



Mime
View raw message