update logger per comments

This commit is contained in:
wy65701436 2016-03-25 03:41:10 -07:00
parent d2eaf6a148
commit 317de6ee88
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import (
"fmt"
"os"
log "github.com/vmware/harbor/utils/log"
"github.com/vmware/harbor/utils/log"
"github.com/vmware/harbor/models"
)

View File

@ -21,7 +21,7 @@ import (
"os"
"strings"
log "github.com/vmware/harbor/utils/log"
"github.com/vmware/harbor/utils/log"
"github.com/vmware/harbor/auth"
"github.com/vmware/harbor/dao"
@ -83,7 +83,7 @@ func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
return nil, err
}
if len(result.Entries()) != 1 {
log.Infof("Found more than one entry.")
log.Warningf("Found more than one entry.")
return nil, nil
}
en := result.Entries()[0]