mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
DEV: Enable all the ActiveRecord goodness in development env.
This commit is contained in:
parent
960fd94758
commit
1d04fb24f8
|
@ -39,7 +39,7 @@ Discourse::Application.configure do
|
|||
|
||||
config.log_level = ENV['DISCOURSE_DEV_LOG_LEVEL'] if ENV['DISCOURSE_DEV_LOG_LEVEL']
|
||||
|
||||
if ENV['RAILS_VERBOSE_QUERY_LOGS']
|
||||
if ENV['RAILS_VERBOSE_QUERY_LOGS'] != 0
|
||||
config.active_record.verbose_query_logs = true
|
||||
end
|
||||
|
||||
|
@ -78,6 +78,10 @@ Discourse::Application.configure do
|
|||
end
|
||||
|
||||
config.after_initialize do
|
||||
if ENV["RAILS_COLORIZE_LOGGING"] != "0"
|
||||
config.colorize_logging = true
|
||||
end
|
||||
|
||||
if ENV['BULLET']
|
||||
Bullet.enable = true
|
||||
Bullet.rails_logger = true
|
||||
|
|
Loading…
Reference in New Issue
Block a user