Add expiration to storage service logging. upstream/REL_1
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Thu, 29 Jul 2010 18:18:05 +0000 (18:18 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Thu, 29 Jul 2010 18:18:05 +0000 (18:18 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@767 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/impl/MemoryStorageService.cpp

index 36e35ba..55a1f19 100644 (file)
@@ -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);
 }