mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
mv log to utils
This commit is contained in:
parent
b3550cf19b
commit
5b0de9a36e
4
main.go
4
main.go
@ -18,7 +18,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
log "github.com/vmware/harbor/log"
|
||||
log "github.com/vmware/harbor/utils/log"
|
||||
|
||||
_ "github.com/vmware/harbor/auth/db"
|
||||
_ "github.com/vmware/harbor/auth/ldap"
|
||||
@ -39,7 +39,7 @@ func updateInitPassword(userID int, password string) error {
|
||||
queryUser := models.User{UserID: userID}
|
||||
user, err := dao.GetUser(queryUser)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to get user, userID: %d", userID)
|
||||
return fmt.Errorf("Failed to get user, userID: %d %v", userID, err)
|
||||
}
|
||||
if user == nil {
|
||||
return fmt.Errorf("User id: %d does not exist.", userID)
|
||||
|
Loading…
Reference in New Issue
Block a user