FIX: Set formatter for original Rails logger.

This commit is contained in:
Guo Xiang Tan 2016-09-15 23:50:34 +08:00
parent 5dbd6a304b
commit 596fcfeb58
1 changed files with 4 additions and 0 deletions

View File

@ -85,3 +85,7 @@ RailsMultisite::ConnectionManagement.each_connection do
end
end
end
if Rails.configuration.multisite
Rails.logger.instance_variable_get(:@chained).first.formatter = RailsMultisite::Formatter.new
end