ldap: log two non-errors on Trace level (#5804)

pull/5806/head
Marco van Zwetselaar 2019-09-19 04:35:42 +03:00 committed by Jiahua Chen
parent 8675dff045
commit cab2b96871
1 changed files with 2 additions and 2 deletions

View File

@ -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
}