Print warnings on stderr, where they belong.

This commit is contained in:
Alec Leamas 2011-01-02 10:54:45 +01:00 committed by Alec Leamas
parent 20efe06ad5
commit 22a696bcf8
2 changed files with 3 additions and 3 deletions

View file

@ -13,4 +13,4 @@ if defined?(PhusionPassenger)
end
end
puts "Security Warning (11/29/2010): if you are using Diaspora on the internet, please make sure your mongodb is started with '--bind 127.0.0.1' or you are using a database password"
$stderr.puts "Security Warning (11/29/2010): if you are using Diaspora on the internet, please make sure your mongodb is started with '--bind 127.0.0.1' or you are using a database password"

View file

@ -26,7 +26,7 @@ class AppConfig
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml"
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example" unless all_envs
else
puts "WARNING: No config/app_config.yml found! Look at config/app_config.yml.example for help."
$stderr.puts "WARNING: No config/app_config.yml found! Look at config/app_config.yml.example for help."
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example"
end