From: Francis Dupont Date: Thu, 15 Oct 2020 07:35:47 +0000 (+0200) Subject: [#1450] Moved authorized log to INFO X-Git-Tag: Kea-1.9.1~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=900aae20fef57cea1374c2f3f4fe625f29abbbe2;p=thirdparty%2Fkea.git [#1450] Moved authorized log to INFO --- diff --git a/ChangeLog b/ChangeLog index 437e306309..9f6142d430 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1816. [func] fdupont + The message logged when basic HTTP authentication succeed is + now informative (INFO vs DEBUG level). + (Gitlab #1450) + 1815. [bug] marcin Fixed libdhcpsrv build failures when building without database backends. diff --git a/src/lib/http/basic_auth_config.cc b/src/lib/http/basic_auth_config.cc index b43cb15a39..9dd8577ab8 100644 --- a/src/lib/http/basic_auth_config.cc +++ b/src/lib/http/basic_auth_config.cc @@ -226,8 +226,7 @@ BasicHttpAuthConfig::checkAuth(const HttpResponseCreator& creator, // Verify the credential is in the list. const auto it = credentials.find(value); if (it != credentials.end()) { - LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC, - HTTP_CLIENT_REQUEST_AUTHORIZED) + LOG_INFO(http_logger, HTTP_CLIENT_REQUEST_AUTHORIZED) .arg(it->second); authentic = true; } else { diff --git a/src/lib/http/http_messages.mes b/src/lib/http/http_messages.mes index c171b96d66..a4a82d2444 100644 --- a/src/lib/http/http_messages.mes +++ b/src/lib/http/http_messages.mes @@ -34,8 +34,8 @@ second argument provides a response in the textual format. The request is truncated by the logger if it is too large to be printed. % HTTP_CLIENT_REQUEST_AUTHORIZED received HTTP request authorized for '%1' -This debug message is issued when the server receives with a matching -authentication header. The argument provides the user name. +This information message is issued when the server receives with a matching +authentication header. The argument provides the user id. % HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER received HTTP request with malformed authentication header: %1 This information message is issued when the server receives a request with