Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 8251)
+++ trunk/psLib/src/db/psDB.c	(revision 8270)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-09 04:30:00 $
+ *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-10 21:36:54 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -182,4 +182,6 @@
     }
 
+    psTrace("psLib.db", PS_LOG_INFO, "connected to database %s", dbname);
+
     return dbh;
 }
@@ -217,4 +219,6 @@
         psDBPTypeToMySQLTableCleanup();
     }
+
+    psTrace("psLib.db", PS_LOG_INFO, "disconnected");
 }
 
@@ -236,4 +240,6 @@
     psFree(query);
 
+    psTrace("psLib.db", PS_LOG_INFO, "created a database named %s", dbname);
+
     return status;
 }
@@ -253,4 +259,6 @@
     }
 
+    psTrace("psLib.db", PS_LOG_INFO, "changed to using database %s", dbname);
+
     return true;
 }
@@ -272,4 +280,6 @@
 
     psFree(query);
+
+    psTrace("psLib.db", PS_LOG_INFO, "dropped database %s", dbname);
 
     return status;
@@ -299,4 +309,6 @@
     psFree(query);
 
+    psTrace("psLib.db", PS_LOG_INFO, "created table %s", tableName);
+
     return status;
 }
@@ -319,4 +331,6 @@
 
     psFree(query);
+
+    psTrace("psLib.db", PS_LOG_INFO, "dropped table %s", tableName);
 
     return status;
@@ -726,4 +740,6 @@
     PS_ASSERT_PTR_NON_NULL(dbh, -1);
 
+    psTrace("psLib.db", PS_LOG_INFO, "calling myql_insert_id()");
+
     // XXX return type is actually my_ulonglong - should the return be psU64?
     return (long)mysql_insert_id(dbh->mysql);
@@ -733,4 +749,6 @@
 {
     PS_ASSERT_PTR_NON_NULL(dbh, -1);
+
+    psTrace("psLib.db", PS_LOG_INFO, "calling mysql_autocommit(): %u", !mode);
 
     // mode needs to be inverted as autocommits are the opposide of explicit
@@ -757,4 +775,6 @@
     PS_ASSERT_PTR_NON_NULL(dbh, -1);
 
+    psTrace("psLib.db", PS_LOG_INFO, "calling myql_commit()");
+
     // is it safe to assume my_bool always safely casts to bool?
     // mysql_commit - Zero if successful. Non-zero if an error occurred.
@@ -765,4 +785,6 @@
 {
     PS_ASSERT_PTR_NON_NULL(dbh, -1);
+
+    psTrace("psLib.db", PS_LOG_INFO, "calling myql_rollback()");
 
     // is it safe to assume my_bool always safely casts to bool?
