mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
log unknown access key
This commit is contained in:
parent
c4e22b5a9a
commit
55973e8572
|
@ -146,11 +146,13 @@ func (iam *IdentityAccessManagement) lookupByAccessKey(accessKey string) (identi
|
|||
|
||||
for _, ident := range iam.identities {
|
||||
for _, cred := range ident.Credentials {
|
||||
println("checking", ident.Name, cred.AccessKey)
|
||||
if cred.AccessKey == accessKey {
|
||||
return ident, cred, true
|
||||
}
|
||||
}
|
||||
}
|
||||
glog.V(1).Infof("could not find accessKey %s", accessKey)
|
||||
return nil, nil, false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue