Loglevel configuration for production
This commit is contained in:
parent
475a781752
commit
58f9420830
@ -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 ]
|
||||||
|
@ -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?
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user