From: Scott Cantor Date: Thu, 29 Jul 2010 18:18:05 +0000 (+0000) Subject: Add expiration to storage service logging. X-Git-Tag: 1.4RC1~51 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=8d4613134e6a7e0913c31cca3f44d0b23c93d54d Add expiration to storage service logging. --- diff --git a/xmltooling/impl/MemoryStorageService.cpp b/xmltooling/impl/MemoryStorageService.cpp index 36e35ba..55a1f19 100644 --- a/xmltooling/impl/MemoryStorageService.cpp +++ b/xmltooling/impl/MemoryStorageService.cpp @@ -225,7 +225,7 @@ bool MemoryStorageService::createString(const char* context, const char* key, co ctx.m_dataMap[key]=Record(value,expiration); - m_log.debug("inserted record (%s) in context (%s)", key, context); + m_log.debug("inserted record (%s) in context (%s) with expiration (%lu)", key, context, expiration); return true; } @@ -270,7 +270,7 @@ int MemoryStorageService::updateString(const char* context, const char* key, con if (expiration && expiration != i->second.expiration) i->second.expiration = expiration; - m_log.debug("updated record (%s) in context (%s)", key, context); + m_log.debug("updated record (%s) in context (%s) with expiration (%lu)", key, context, i->second.expiration); return i->second.version; } @@ -303,5 +303,5 @@ void MemoryStorageService::updateContext(const char* context, time_t expiration) i->second.expiration = expiration; } - m_log.debug("updated expiration of valid records in context (%s)", context); + m_log.debug("updated expiration of valid records in context (%s) to (%lu)", context, expiration); }