|
1 |
| -require "active_support/core_ext/integer/time" |
| 1 | +require 'active_support/core_ext/integer/time' |
2 | 2 |
|
3 | 3 | Rails.application.configure do
|
4 | 4 | # Settings specified here will take precedence over those in config/application.rb.
|
|
53 | 53 |
|
54 | 54 | # Log to STDOUT by default
|
55 | 55 | config.logger = ActiveSupport::Logger.new(STDOUT)
|
56 |
| - .tap { |logger| logger.formatter = ::Logger::Formatter.new } |
57 |
| - .then { |logger| ActiveSupport::TaggedLogging.new(logger) } |
| 56 | + .tap { |logger| logger.formatter = ::Logger::Formatter.new } |
| 57 | + .then { |logger| ActiveSupport::TaggedLogging.new(logger) } |
58 | 58 |
|
59 | 59 | # Prepend all log lines with the following tags.
|
60 |
| - config.log_tags = [ :request_id ] |
| 60 | + config.log_tags = [:request_id] |
61 | 61 |
|
62 | 62 | # "info" includes generic and useful information about system operation, but avoids logging too much
|
63 | 63 | # information to avoid inadvertent exposure of personally identifiable information (PII). If you
|
64 | 64 | # want to log everything, set the level to "debug".
|
65 |
| - config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") |
| 65 | + config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info') |
66 | 66 |
|
67 | 67 | # Use a different cache store in production.
|
68 | 68 | # config.cache_store = :mem_cache_store
|
|
72 | 72 | # config.active_job.queue_name_prefix = "odinbook_production"
|
73 | 73 |
|
74 | 74 | config.action_mailer.perform_caching = false
|
| 75 | + config.action_mailer.perform_deliveries = false |
| 76 | + config.action_mailer.delivery_method = :test |
75 | 77 |
|
76 | 78 | # Ignore bad email addresses and do not raise email delivery errors.
|
77 | 79 | # Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
0 commit comments