From 22a696bcf864ff53c167a736ee015952d09955c6 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Sun, 2 Jan 2011 10:54:45 +0100 Subject: [PATCH] Print warnings on stderr, where they belong. --- config/initializers/_mongo.rb | 2 +- lib/app_config.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/initializers/_mongo.rb b/config/initializers/_mongo.rb index 88bd2c44a..3ee4d5d91 100644 --- a/config/initializers/_mongo.rb +++ b/config/initializers/_mongo.rb @@ -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" diff --git a/lib/app_config.rb b/lib/app_config.rb index 512f99bd9..c5cd9e5dd 100644 --- a/lib/app_config.rb +++ b/lib/app_config.rb @@ -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 @@ -63,4 +63,4 @@ class AppConfig def self.load_config_yaml filename YAML.load(File.read(filename)) end -end \ No newline at end of file +end