Merge pull request #42666 from justin808/patch-1

Improve logging of schema cache at startup.
This commit is contained in:
Jean Boussier 2021-07-08 10:02:41 +02:00 committed by GitHub
commit 197fb159ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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