From 80ed9291ae4d7be674ac03e199f845fb52d79948 Mon Sep 17 00:00:00 2001 From: cantor Date: Sat, 8 Mar 2008 03:13:03 +0000 Subject: [PATCH] Add protocol to log. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2763 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shibsp/impl/StorageServiceSessionCache.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shibsp/impl/StorageServiceSessionCache.cpp b/shibsp/impl/StorageServiceSessionCache.cpp index becb716..b687d33 100644 --- a/shibsp/impl/StorageServiceSessionCache.cpp +++ b/shibsp/impl/StorageServiceSessionCache.cpp @@ -977,7 +977,9 @@ void SSCache::insert( } const char* pid = obj["entity_id"].string(); - m_log.info("new session created: SessionID (%s) IdP (%s) Address (%s)", key.get(), pid ? pid : "none", httpRequest.getRemoteAddr().c_str()); + const char* prot = obj["protocol"].string(); + m_log.info("new session created: ID (%s) IdP (%s) Protocol(%s) Address (%s)", + key.get(), pid ? pid : "none", prot ? prot : "none", httpRequest.getRemoteAddr().c_str()); // Transaction Logging TransactionLog* xlog = application.getServiceProvider().getTransactionLog(); @@ -993,6 +995,8 @@ void SSCache::insert( httpRequest.getRemoteAddr() << ") with (NameIdentifier: " << (nameid ? name.get() : "none") << + ") using (Protocol: " << + (prot ? prot : "none") << ")"; if (attributes) { -- 2.1.4