From: Scott Cantor Date: Sat, 8 Mar 2008 03:13:03 +0000 (+0000) Subject: Add protocol to log. X-Git-Tag: 2.0.0~23 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=b06a061195e0192b350eb3cd41b2c1d5b52b646c;p=shibboleth%2Fcpp-sp.git Add protocol to log. --- 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) {