DEV: reduce noise in logs regarding migration

If a migration performs no changes it should not output stuff.

Previously we would output information about seeds which was very noisy.

On multisite this was particularly bad
This commit is contained in:
Sam Saffron 2020-04-09 10:05:22 +10:00
parent 452d0c868f
commit f062ebf274
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5

View File

@ -75,13 +75,11 @@ task 'db:migrate' => ['load_config', 'environment', 'set_locale'] do |_, args|
Rake::Task['db:_dump'].invoke
end
SeedFu.quiet = true
SeedFu.seed(DiscoursePluginRegistry.seed_paths)
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
puts
print "Optimizing site icons... "
SiteIconManager.ensure_optimized!
puts "Done"
end
if !Discourse.is_parallel_test? && MultisiteTestHelpers.load_multisite?