Improve logging of schema cache at startup.

This allows verification if the schema cache was used at startup.
This commit is contained in:
Justin Gordon 2021-07-01 01:56:22 -10:00 committed by Justin Gordon
parent 6ecf1065da
commit 9f9c1bf79e

@ -150,11 +150,12 @@ class Railtie < Rails::Railtie # :nodoc:
next if current_version.nil?
if cache.version != current_version
warn "Ignoring #{filename} because it has expired. The current schema version is #{current_version}, but the one in the cache is #{cache.version}."
warn "Ignoring #{filename} because it has expired. The current schema version is #{current_version}, but the one in the schema cache file is #{cache.version}."
next
end
end
Rails.logger.info("Using schema cache file #{filename}")
connection_pool.set_schema_cache(cache)
end
end