]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1450] Moved authorized log to INFO
authorFrancis Dupont <fdupont@isc.org>
Thu, 15 Oct 2020 07:35:47 +0000 (09:35 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 16 Oct 2020 10:58:37 +0000 (12:58 +0200)
ChangeLog
src/lib/http/basic_auth_config.cc
src/lib/http/http_messages.mes

index 437e3063099bc93127ec3a33515f58e36448bbff..9f6142d4305f2d52039596b3529b58e21e756989 100644 (file)
--- 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.
index b43cb15a3927126baa20b3a7dddd06a342261d7e..9dd8577ab81359909b42f831d7e2c4b27d2ae80f 100644 (file)
@@ -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 {
index c171b96d66b4273658f13572d86324c055d31381..a4a82d24445cbda1ad7d577541d78e1b9c1389fc 100644 (file)
@@ -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