aboutsummaryrefslogtreecommitdiff
path: root/pkg/auth
diff options
context:
space:
mode:
authorMarco van Zwetselaar <io@zwets.it>2019-09-19 04:35:42 +0300
committerJiahua Chen <u@gogs.io>2019-09-18 18:35:42 -0700
commitcab2b9687134aa886ace3323b06a34845b07bd3c (patch)
tree68a9715c94a1661a4b692ea0fe02ea553da05503 /pkg/auth
parent8675dff045e550c8938fa66b549a3fa36e92122d (diff)
ldap: log two non-errors on Trace level (#5804)
Diffstat (limited to 'pkg/auth')
-rw-r--r--pkg/auth/ldap/ldap.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/auth/ldap/ldap.go b/pkg/auth/ldap/ldap.go
index 0d34acb7..e88cef77 100644
--- a/pkg/auth/ldap/ldap.go
+++ b/pkg/auth/ldap/ldap.go
@@ -269,7 +269,7 @@ func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, str
log.Error(2, "LDAP: Group search failed: %v", err)
return "", "", "", "", false, false
} else if len(srg.Entries) < 1 {
- log.Error(2, "LDAP: Group search failed: 0 entries")
+ log.Trace("LDAP: Group search returned no entries")
return "", "", "", "", false, false
}
@@ -310,7 +310,7 @@ func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, str
if err != nil {
log.Error(2, "LDAP: Admin search failed: %v", err)
} else if len(sr.Entries) < 1 {
- log.Error(2, "LDAP: Admin search failed: 0 entries")
+ log.Trace("LDAP: Admin search returned no entries")
} else {
isAdmin = true
}