diff --git a/db/fixtures/990_settings.rb b/db/fixtures/990_settings.rb index 7086f6b1cd9..6f21e588131 100644 --- a/db/fixtures/990_settings.rb +++ b/db/fixtures/990_settings.rb @@ -5,6 +5,8 @@ if SiteSetting.notification_email == SiteSetting.defaults[:notification_email] begin SiteSetting.notification_email = "noreply@#{Discourse.current_hostname}" rescue Discourse::InvalidParameters - STDERR.puts "Discourse hostname: #{Discourse.current_hostname} is not a valid domain for emails!" + if Rails.env.production? + STDERR.puts "WARNING: Discourse hostname: #{Discourse.current_hostname} is not a valid domain for emails!" + end end end