Skip to content

Commit 508fb38

Browse files
authored
[rails] Don't use a logger (#9696)
Not using a logger is faster than setting the log level to fatal. +----------------+------+-----+-----+------+-------+---------+------------+--------------+ | branch_name| json| db|query|update|fortune|plaintext|cached-query|weighted_score| +----------------+------+-----+-----+------+-------+---------+------------+--------------+ | master|152537|33415|28714| 13947| 20249| 186596| 27632| 1901| |rails/nil-logger|157689|34283|30021| 15317| 21485| 184987| 26848| 2034| +----------------+------+-----+-----+------+-------+---------+------------+--------------+
1 parent e7e4310 commit 508fb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/Ruby/rails/config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Log to STDOUT with the current request id as a default log tag.
3838
# config.log_tags = [ :request_id ]
39-
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
39+
config.logger = nil
4040

4141
# Change to "debug" to log everything (including potentially personally-identifiable information!)
4242
config.log_level = :fatal

0 commit comments

Comments
 (0)