Loglevel configuration for production

This commit is contained in:
bumi 2020-04-06 09:46:32 +02:00
parent 475a781752
commit 58f9420830
2 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,7 @@ Rails.application.configure do
# Use the lowest log level to ensure availability of diagnostic information # Use the lowest log level to ensure availability of diagnostic information
# when problems arise. # when problems arise.
config.log_level = :debug config.log_level = :info
# Prepend all log lines with the following tags. # Prepend all log lines with the following tags.
config.log_tags = [ :request_id ] config.log_tags = [ :request_id ]

View File

@ -11,4 +11,3 @@ secrets_options = {
} }
CLIENT_SECRETS = Google::APIClient::ClientSecrets.new("web" => secrets_options) CLIENT_SECRETS = Google::APIClient::ClientSecrets.new("web" => secrets_options)
Google::Apis.logger = ::Rails.logger Google::Apis.logger = ::Rails.logger
Google::Apis.logger.level = Logger::INFO if Rails.env.production?