From: Scott Cantor Date: Thu, 31 May 2012 17:52:06 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-458 X-Git-Tag: 2.5.0~71 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=4b9dc718e6f55c34fa6ed1eb666b4335e6819bec;p=shibboleth%2Fcpp-sp.git https://issues.shibboleth.net/jira/browse/SSPCPP-458 --- diff --git a/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp b/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp index 60536eb..402dfba 100644 --- a/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp +++ b/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp @@ -578,11 +578,11 @@ void QueryResolver::SAML2Query(QueryContext& ctx) const tokenwrapper.release(); newtokenwrapper.reset(newtoken); if (m_log.isDebugEnabled()) - m_log.debugStream() << "decrypted Assertion: " << *newtoken << logging::eol; + m_log.debugStream() << "decrypted assertion: " << *newtoken << logging::eol; } } catch (exception& ex) { - m_log.error(ex.what()); + m_log.error("failed to decrypt assertion: %s", ex.what()); throw; } } diff --git a/shibsp/attribute/resolver/impl/SimpleAggregationAttributeResolver.cpp b/shibsp/attribute/resolver/impl/SimpleAggregationAttributeResolver.cpp index 7639ea3..f21e75f 100644 --- a/shibsp/attribute/resolver/impl/SimpleAggregationAttributeResolver.cpp +++ b/shibsp/attribute/resolver/impl/SimpleAggregationAttributeResolver.cpp @@ -482,11 +482,11 @@ void SimpleAggregationResolver::doQuery(SimpleAggregationContext& ctx, const cha tokenwrapper.release(); newtokenwrapper.reset(newtoken); if (m_log.isDebugEnabled()) - m_log.debugStream() << "decrypted Assertion: " << *newtoken << logging::eol; + m_log.debugStream() << "decrypted assertion: " << *newtoken << logging::eol; } } catch (std::exception& ex) { - m_log.error(ex.what()); + m_log.error("failed to decrypt assertion: %s", ex.what()); throw; } } diff --git a/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp b/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp index 54e0591..1fc2555 100644 --- a/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp +++ b/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp @@ -990,7 +990,7 @@ void XMLExtractor::extractAttributes( } } catch (std::exception& ex) { - m_log.error("caught exception decrypting Attribute: %s", ex.what()); + m_log.error("failed to decrypt Attribute: %s", ex.what()); return; } } diff --git a/shibsp/handler/impl/SAML2Consumer.cpp b/shibsp/handler/impl/SAML2Consumer.cpp index be11ccd..f90f7ca 100644 --- a/shibsp/handler/impl/SAML2Consumer.cpp +++ b/shibsp/handler/impl/SAML2Consumer.cpp @@ -302,7 +302,7 @@ void SAML2Consumer::implementProtocol( } } catch (std::exception& ex) { - m_log.error(ex.what()); + m_log.error("failed to decrypt assertion: %s", ex.what()); } if (!decrypted) continue; @@ -401,7 +401,7 @@ void SAML2Consumer::implementProtocol( } } catch (std::exception& ex) { - m_log.error(ex.what()); + m_log.error("failed to decrypt NameID: %s", ex.what()); } } }