InternalCCache::InternalCCache(const DOMElement* e)
: m_root(e), m_AATimeout(30), m_AAConnectTimeout(15), m_defaultLifetime(1800), m_retryInterval(300),
m_strictValidity(true), m_propagateErrors(false), lock(RWLock::create()),
- log (&Category::getInstance("shibtarget.InternalCCache"))
+ log (&Category::getInstance(SHIBT_LOGCAT".SessionCache"))
{
const XMLCh* tag=m_root->getAttributeNS(NULL,AATimeout);
if (tag && *tag) {
void InternalCCache::cleanup()
{
- Mutex* mutex = Mutex::create();
- saml::NDC ndc("InternalCCache::cleanup()");
+#ifdef _DEBUG
+ saml::NDC ndc("cleanup()");
+#endif
int rerun_timer = 0;
int timeout_life = 0;
-
+ Mutex* mutex = Mutex::create();
+
// Load our configuration details...
const XMLCh* tag=m_root->getAttributeNS(NULL,cleanupInterval);
if (tag && *tag)
mutex->lock();
- log->debug("Cleanup thread started... Run every %d secs; timeout after %d secs",
+ log->info("Cleanup thread started... Run every %d secs; timeout after %d secs",
rerun_timer, timeout_life);
while (shutdown == false) {
if (shutdown == true)
break;
- log->info("Cleanup thread running...");
+ log->debug("Cleanup thread running...");
// Ok, let's run through the cleanup process and clean out
// really old sessions. This is a two-pass process. The
}
}
- log->debug("Cleanup thread finished.");
+ log->info("Cleanup thread finished.");
mutex->unlock();
delete mutex;