事象
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