From 24d9ad3392e8dce6f57e93eb0b2210fd15a14ef5 Mon Sep 17 00:00:00 2001 From: Raghav Date: Fri, 29 Jul 2022 18:02:27 +0530 Subject: [PATCH] gcs log fix (#21) --- storage/backend/gcs/gcs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/backend/gcs/gcs.go b/storage/backend/gcs/gcs.go index 9aa02a55..f7662d23 100644 --- a/storage/backend/gcs/gcs.go +++ b/storage/backend/gcs/gcs.go @@ -240,9 +240,10 @@ func credentials(l log.Logger, c Config) (*google.Credentials, error) { } level.Error(l).Log("msg", "gc storage credentials from api-key", "err", err) - level.Warn(l).Log("msg", "falling back to anonymous credentials") } + level.Info(l).Log("msg", "json key not present, falling back to anonymous credentials") + creds, err := google.FindDefaultCredentials(ctx, gcstorage.ScopeFullControl) if err != nil { return nil, err