Move more settings to the gem
This commit is contained in:
@@ -94,7 +94,4 @@ Rails.application.configure do
|
||||
config.solid_queue.connects_to = { database: { writing: :queue, reading: :queue } }
|
||||
end
|
||||
|
||||
if config.respond_to?(:structured_logging) && Rails.root.join("tmp/structured-logging.txt").exist?
|
||||
config.structured_logging.logger = ActiveSupport::Logger.new("log/structured-development.log")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -32,9 +32,6 @@ Rails.application.configure do
|
||||
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
|
||||
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
|
||||
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options).
|
||||
config.active_storage.service = :purestorage
|
||||
|
||||
# Mount Action Cable outside main process or domain.
|
||||
# config.action_cable.mount_path = nil
|
||||
# config.action_cable.url = "wss://example.com/cable"
|
||||
@@ -55,9 +52,6 @@ Rails.application.configure do
|
||||
# Suppress unstructured log lines
|
||||
config.log_level = :fatal
|
||||
|
||||
# Structured JSON logging. Pending to move to new Rails' built-in support.
|
||||
config.structured_logging.logger = ActiveSupport::Logger.new(STDOUT) if config.respond_to?(:structured_logging)
|
||||
|
||||
# Prepend all log lines with the following tags.
|
||||
config.log_tags = [ :request_id ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user