Skip to content

Commit

Permalink
chore: Add logging to Redis server
Browse files Browse the repository at this point in the history
  • Loading branch information
nanafox committed Sep 18, 2024
1 parent e2cc653 commit e301204
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ class Application < Rails::Application
generate.orm :active_record, primary_key_type: :uuid
end

config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'] }
config.cache_store = :redis_cache_store, {
url: ENV['REDIS_URL'],
expires_in: 2.hours,
reconnect_attempts: 3,
logger: ActiveSupport::Logger.new($stdout)
}

config.autoload_paths += %W[#{config.root}/app/validators]
end
Expand Down

0 comments on commit e301204

Please sign in to comment.