From 007a55df163f54b5c462b9ef8982b00341282b04 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 20 Aug 2025 14:12:11 -0700 Subject: [PATCH] Let the Rails logger print backtraces --- benchmarks/lobsters/config/environments/production.rb | 2 +- benchmarks/railsbench/config/environments/production.rb | 2 +- benchmarks/shipit/config/environments/production.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/lobsters/config/environments/production.rb b/benchmarks/lobsters/config/environments/production.rb index c23e53b0..2b0ed4b8 100644 --- a/benchmarks/lobsters/config/environments/production.rb +++ b/benchmarks/lobsters/config/environments/production.rb @@ -88,7 +88,7 @@ # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } # yjit-bench configurations - config.logger = nil + config.log_level = :error config.secret_key_base = 'in general secret should not be in the git repo but this is a benchmark' # If we want to benchmark with YJIT then it has already been enabled by command line arguments. # If we are benchmarking CRuby without YJIT don't enable it even if this build has it. diff --git a/benchmarks/railsbench/config/environments/production.rb b/benchmarks/railsbench/config/environments/production.rb index e3e5d8c0..fb0956c9 100644 --- a/benchmarks/railsbench/config/environments/production.rb +++ b/benchmarks/railsbench/config/environments/production.rb @@ -91,7 +91,7 @@ # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } # yjit-bench configurations - config.logger = nil + config.log_level = :error config.secret_key_base = 'in general secret should not be in the git repo but this is a benchmark' # If we want to benchmark with YJIT then it has already been enabled by command line arguments. # If we are benchmarking CRuby without YJIT don't enable it even if this build has it. diff --git a/benchmarks/shipit/config/environments/production.rb b/benchmarks/shipit/config/environments/production.rb index a50ba702..b8e69c54 100644 --- a/benchmarks/shipit/config/environments/production.rb +++ b/benchmarks/shipit/config/environments/production.rb @@ -70,6 +70,6 @@ # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } # Benchmark mods: - config.logger = nil # disable logging + config.log_level = :error config.yjit = false end