Tweaked some logging.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 15 Jul 2003 05:52:14 +0000 (05:52 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 15 Jul 2003 05:52:14 +0000 (05:52 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@637 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-mysql-ccache/shib-mysql-ccache.cpp

index 112272d..3b3fb1f 100644 (file)
@@ -136,7 +136,7 @@ MYSQL* ShibMySQLCCache::getMYSQL()
 
 void ShibMySQLCCache::thread_init()
 {
-  saml::NDC ndc("open_db");
+  saml::NDC ndc("thread_init");
 
   // Connect to the database
   MYSQL* mysql = mysql_init(NULL);
@@ -305,7 +305,7 @@ void ShibMySQLCCache::remove(const char* key)
 void ShibMySQLCCache::cleanup()
 {
   Mutex* mutex = Mutex::create();
-  saml::NDC ndc("mysql::cleanup()");
+  saml::NDC ndc("mysql::cleanup");
 
   thread_init();
 
@@ -370,6 +370,8 @@ void ShibMySQLCCache::cleanup()
     mysql_free_result(rows);
   }
 
+  log->debug("cleanup thread exiting...");
+
   mutex->unlock();
   delete mutex;
   thread_end();