Skip to content

Commit 197fb15

Browse files
authored
Merge pull request rails#42666 from justin808/patch-1
Improve logging of schema cache at startup.
2 parents 37fb99e + 9f9c1bf commit 197fb15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activerecord/lib/active_record/railtie.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ class Railtie < Rails::Railtie # :nodoc:
150150
next if current_version.nil?
151151

152152
if cache.version != current_version
153-
warn "Ignoring #{filename} because it has expired. The current schema version is #{current_version}, but the one in the cache is #{cache.version}."
153+
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}."
154154
next
155155
end
156156
end
157157

158+
Rails.logger.info("Using schema cache file #{filename}")
158159
connection_pool.set_schema_cache(cache)
159160
end
160161
end

0 commit comments

Comments
 (0)