X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSecuredHandler.cpp;h=c5669e2487c684a1bc2dbecefa0b5a2a7f15ba1b;hb=3472b331ff264d4c6bce53f87795f9c47e87c386;hp=17074dce3f8403d58603114503faa32b429befd3;hpb=a781d386585185ff9c9346b80ddccdfb40c6c603;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/handler/impl/SecuredHandler.cpp b/shibsp/handler/impl/SecuredHandler.cpp index 17074dc..c5669e2 100644 --- a/shibsp/handler/impl/SecuredHandler.cpp +++ b/shibsp/handler/impl/SecuredHandler.cpp @@ -103,7 +103,7 @@ pair SecuredHandler::run(SPRequest& request, bool isHandler) const if (conf.isEnabled(SPConfig::InProcess) && !m_acl.empty()) { static bool (IPRange::* contains)(const char*) const = &IPRange::contains; if (find_if(m_acl.begin(), m_acl.end(), boost::bind(contains, _1, request.getRemoteAddr().c_str())) == m_acl.end()) { - m_log.error("handler request blocked from invalid address (%s)", request.getRemoteAddr().c_str()); + request.log(SPRequest::SPWarn, string("handler request blocked from invalid address (") + request.getRemoteAddr() + ')'); istringstream msg("Access Denied"); return make_pair(true, request.sendResponse(msg, HTTPResponse::XMLTOOLING_HTTP_STATUS_FORBIDDEN)); }