From ab3d3504fb30f52e66445fa1e8bca4d6a388086e Mon Sep 17 00:00:00 2001 From: "stonezdj(Daojun Zhang)" Date: Mon, 14 Oct 2024 19:34:15 +0800 Subject: [PATCH] =?UTF-8?q?Change=20the=20log=20level=20from=20warning=20t?= =?UTF-8?q?o=20debug=20to=20avoid=20noise=20when=20there=20=E2=80=A6=20(#2?= =?UTF-8?q?1034)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the log level from warning to debug to avoid noise when there are many unused ldap groups for each user fixes #20038 Signed-off-by: stonezdj --- src/core/auth/ldap/ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/auth/ldap/ldap.go b/src/core/auth/ldap/ldap.go index 62f85aa15..60d31f2b4 100644 --- a/src/core/auth/ldap/ldap.go +++ b/src/core/auth/ldap/ldap.go @@ -204,7 +204,7 @@ func verifyGroupInLDAP(groupDN string, sess *ldap.Session) (*model.Group, bool) return nil, false } if len(lGroups) == 0 { - log.Warningf("Can not get the ldap group name with DN %v", groupDN) + log.Debugf("Can not get the ldap group name with DN %v", groupDN) return nil, false } return &lGroups[0], true