From: Scott Cantor Date: Sun, 19 Sep 2010 01:22:44 +0000 (+0000) Subject: Add log4shib version to remaining version strings. X-Git-Tag: 2.4RC1~41 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=a1d64d9a729ff3f2cc25f0e805e58a94157e3bbd Add log4shib version to remaining version strings. --- diff --git a/shibsp/SPConfig.cpp b/shibsp/SPConfig.cpp index c62c668..097704c 100644 --- a/shibsp/SPConfig.cpp +++ b/shibsp/SPConfig.cpp @@ -208,7 +208,12 @@ bool SPConfig::init(const char* catalog_path, const char* inst_prefix) #else XMLToolingConfig::getConfig().user_agent = string(PACKAGE_NAME) + '/' + PACKAGE_VERSION + " XMLTooling/" + XMLTOOLING_FULLVERSIONDOT + - " Xerces-C/" + XERCES_FULLVERSIONDOT; + " Xerces-C/" + XERCES_FULLVERSIONDOT + +#if defined(LOG4SHIB_VERSION) + " log4shib/" + LOG4SHIB_VERSION; +#elif defined(LOG4CPP_VERSION) + " log4cpp/" + LOG4CPP_VERSION; +#endif if (!XMLToolingConfig::getConfig().init()) { log.fatal("failed to initialize XMLTooling library"); return false; diff --git a/shibsp/impl/XMLServiceProvider.cpp b/shibsp/impl/XMLServiceProvider.cpp index 30a3fa0..3179637 100644 --- a/shibsp/impl/XMLServiceProvider.cpp +++ b/shibsp/impl/XMLServiceProvider.cpp @@ -1876,12 +1876,26 @@ XMLConfigImpl::XMLConfigImpl(const DOMElement* e, bool first, const XMLConfig* o log.info("Shibboleth SP Version %s", PACKAGE_VERSION); #ifndef SHIBSP_LITE log.info( - "Library versions: Xerces-C %s, XML-Security-C %s, XMLTooling-C %s, OpenSAML-C %s, Shibboleth %s", + "Library versions: %s %s, Xerces-C %s, XML-Security-C %s, XMLTooling-C %s, OpenSAML-C %s, Shibboleth %s", +# if defined(LOG4SHIB_VERSION) + "log4shib", LOG4SHIB_VERSION, +# elif defined(LOG4CPP_VERSION) + "log4cpp", LOG4CPP_VERSION, +# else + "", "", +# endif XERCES_FULLVERSIONDOT, XSEC_FULLVERSIONDOT, XMLTOOLING_FULLVERSIONDOT, OPENSAML_FULLVERSIONDOT, SHIBSP_FULLVERSIONDOT ); #else log.info( - "Library versions: Xerces-C %s, XMLTooling-C %s, Shibboleth %s", + "Library versions: %s %s, Xerces-C %s, XMLTooling-C %s, Shibboleth %s", +# if defined(LOG4SHIB_VERSION) + "log4shib", LOG4SHIB_VERSION, +# elif defined(LOG4CPP_VERSION) + "log4cpp", LOG4CPP_VERSION, +# else + "", "", +# endif XERCES_FULLVERSIONDOT, XMLTOOLING_FULLVERSIONDOT, SHIBSP_FULLVERSIONDOT ); #endif