StackdriverをGemfileのstagingとproduction Groupに追加した後に以下のwarningが表示されるようになった。
1
2
3
4
|
Your application has authenticated using end user credentials from Google Cloud SDK.
We recommend that most server applications use service accounts instead.
If your application continues to use end user credentials from Cloud SDK, you might receive a "quota exceeded" or "API not enabled" error.
For more information about service accounts, see https://cloud.google.com/docs/authentication/.
|
ここ
1
2
|
# Done if Google::Cloud.configure.use_trace is explicitly false
return if Google::Cloud.configure.use_trace == false
|
でreturnしてくれそうだがreturnせずに後続の処理が行われてgcpのcredentialチェックまで走ってしまいエラーになっている模様
Google::Cloud.configure.use_traceの中身はnilになっているので条件一致せずに後続の処理が実行されている模様。
falseにしろってコメント書いてあるし。
なので設定してあげる。
1
2
3
|
# config/environments/development.rbに追記
Google::Cloud.configure.use_trace = false
Google::Cloud.configure.use_error_reporting = false
|
これでwargingはでなくなりました。