Improve logging of schema cache at startup.
This allows verification if the schema cache was used at startup.
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user