mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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']
|
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
|
config.active_record.verbose_query_logs = true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -78,6 +78,10 @@ Discourse::Application.configure do
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.after_initialize do
|
config.after_initialize do
|
||||||
|
if ENV["RAILS_COLORIZE_LOGGING"] != "0"
|
||||||
|
config.colorize_logging = true
|
||||||
|
end
|
||||||
|
|
||||||
if ENV['BULLET']
|
if ENV['BULLET']
|
||||||
Bullet.enable = true
|
Bullet.enable = true
|
||||||
Bullet.rails_logger = true
|
Bullet.rails_logger = true
|
||||||
|
Loading…
Reference in New Issue
Block a user