mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-08 16:02:15 +01:00
update logger per comments
This commit is contained in:
parent
d2eaf6a148
commit
317de6ee88
@ -19,7 +19,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
log "github.com/vmware/harbor/utils/log"
|
"github.com/vmware/harbor/utils/log"
|
||||||
|
|
||||||
"github.com/vmware/harbor/models"
|
"github.com/vmware/harbor/models"
|
||||||
)
|
)
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
log "github.com/vmware/harbor/utils/log"
|
"github.com/vmware/harbor/utils/log"
|
||||||
|
|
||||||
"github.com/vmware/harbor/auth"
|
"github.com/vmware/harbor/auth"
|
||||||
"github.com/vmware/harbor/dao"
|
"github.com/vmware/harbor/dao"
|
||||||
@ -83,7 +83,7 @@ func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(result.Entries()) != 1 {
|
if len(result.Entries()) != 1 {
|
||||||
log.Infof("Found more than one entry.")
|
log.Warningf("Found more than one entry.")
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
en := result.Entries()[0]
|
en := result.Entries()[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user