mirror of
https://github.com/gogs/gogs.git
synced 2025-05-29 02:33:41 +00:00
ldap: log two non-errors on Trace level (#5804)
This commit is contained in:
parent
8675dff045
commit
cab2b96871
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user