4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[GAE][Rails]Note: Google::Cloud is disabled と表示される

Last updated at Posted at 2020-02-11

事象

develop環境でrailsコマンドを打つと下記が発生

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/. To suppress this message, set the GOOGLE_AUTH_SUPPRESS_CREDENTIALS_WARNINGS environment variable.
Note: Google::Cloud::Logging is disabled because the project ID could not be determined. Falling back to the default Rails logger.
Note: Google::Cloud::Debugger is disabled because the project ID could not be determined.
Note: Google::Cloud::ErrorReporting is disabled because the project ID could not be determined.
Note: Google::Cloud::Trace is disabled because the project ID could not be determined.

対象方法

とりあえずdevelop環境ではLogging等いらないと判断し下記の設定を追加しました。

config/enviroments/development.rb

  # gcp設定
  config.google_cloud.use_logging = false
  config.google_cloud.use_debugger = false
  config.google_cloud.use_error_reporting = false
  config.google_cloud.use_trace = false

参考

GAE/Rails で Stackdriver Logging を綺麗にするためにログの仕組みを学んだ
Rails — Disable Stackdriver in development

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?