From 55973e857282af8f25249be2ec9cc8b0b8302edd Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 7 Nov 2021 12:37:46 -0800 Subject: [PATCH] log unknown access key --- weed/s3api/auth_credentials.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index 4ecd0c170..85f551197 100644 --- a/weed/s3api/auth_credentials.go +++ b/weed/s3api/auth_credentials.go @@ -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 }