Skip to content

Commit

Permalink
gcs log fix (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavharness authored Jul 29, 2022
1 parent 7c02233 commit 24d9ad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/backend/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24d9ad3

Please sign in to comment.