mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #42666 from justin808/patch-1
Improve logging of schema cache at startup.
This commit is contained in:
commit
197fb159ec
1 changed files with 2 additions and 1 deletions
|
@ -150,11 +150,12 @@ To keep using the current cache store, you can turn off cache versioning entirel
|
|||
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 a new issue