You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by bo...@apache.org on 2010/09/01 06:18:17 UTC

svn commit: r991430 - /gump/trunk/python/gump/util/mysql.py

Author: bodewig
Date: Wed Sep  1 04:18:16 2010
New Revision: 991430

URL: http://svn.apache.org/viewvc?rev=991430&view=rev
Log:
Make database logging more verbose - tweaking gump.log.config didn't work

Modified:
    gump/trunk/python/gump/util/mysql.py

Modified: gump/trunk/python/gump/util/mysql.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/util/mysql.py?rev=991430&r1=991429&r2=991430&view=diff
==============================================================================
--- gump/trunk/python/gump/util/mysql.py (original)
+++ gump/trunk/python/gump/util/mysql.py Wed Sep  1 04:18:16 2010
@@ -153,9 +153,9 @@ class DbHelper:
         try:
             try:
                 cursor = self.conn.cursor()
-                log.debug('SQL: ' + statement)
+                log.info('SQL: ' + statement)
                 affected = cursor.execute(statement)
-                log.debug('SQL affected: ' + `affected`)
+                log.info('SQL affected: ' + `affected`)
 
                 if affected > 0: # might be nothing in db yet
                     row = cursor.fetchall()[0] # Ought be only one...
@@ -222,9 +222,9 @@ class DbHelper:
         try:
             try:
                 cursor = self.conn.cursor()
-                log.debug('SQL: ' + statement)
+                log.info('SQL: ' + statement)
                 affected = cursor.execute(statement)
-                log.debug('SQL Affected: ' + `affected`)
+                log.info('SQL Affected: ' + `affected`)
             except Exception, details:
                 if cursor:
                     self.logWarnings(cursor)
@@ -263,9 +263,9 @@ class DbHelper:
         try:
             try:
                 cursor = self.conn.cursor()
-                log.debug('SQL: ' + statement)
+                log.info('SQL: ' + statement)
                 affected = cursor.execute(statement)
-                log.debug('SQL Affected: ' + `affected`)
+                log.info('SQL Affected: ' + `affected`)
             except Exception, details:
                 if cursor:
                     self.logWarnings(cursor)
@@ -300,9 +300,9 @@ class DbHelper:
         try:
             try:
                 cursor = self.conn.cursor()
-                log.debug('SQL: ' + statement)
+                log.info('SQL: ' + statement)
                 affected = cursor.execute(statement)
-                log.debug('SQL Affected: ' + `affected`)
+                log.info('SQL Affected: ' + `affected`)
             except Exception, details:
                 if cursor:
                     self.logWarnings(cursor)