From d35badd7eab61565e94f7341f1742823abbf4894 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 3 Dec 2010 11:02:10 -0800 Subject: [PATCH 1/2] Remove log rotator, it seems to be disrupting log_overrider --- config/initializers/_load_app_config.rb | 2 ++ config/initializers/logging.rb | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 config/initializers/logging.rb diff --git a/config/initializers/_load_app_config.rb b/config/initializers/_load_app_config.rb index 33897ab69..6d9689846 100644 --- a/config/initializers/_load_app_config.rb +++ b/config/initializers/_load_app_config.rb @@ -27,3 +27,5 @@ APP_CONFIG[:pod_url].chop! if APP_CONFIG[:pod_url][-1, 1] == '/' APP_CONFIG[:pod_url] = APP_CONFIG[:pod_url] + '/' puts "WARNING: Please modify your app_config.yml to have a proper pod_url!" if APP_CONFIG[:terse_pod_url] == "example.org" && Rails.env != "test" +Rails.logger.fatal( + "event=app_config_loaded time='#{Time.now}'") diff --git a/config/initializers/logging.rb b/config/initializers/logging.rb deleted file mode 100644 index de40c888a..000000000 --- a/config/initializers/logging.rb +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - -Rails.logger = Logger.new( - Rails.root.join("log",Rails.env + ".log"),3,5*1024*1024) - -Rails.logger.fatal( - "===================================================\n===================================================\nServer starting up! Time is #{Time.now}") From 3cb0064835c980d56c7586d16794a7c7586e0184 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 3 Dec 2010 11:29:49 -0800 Subject: [PATCH 2/2] Take out server start logging for now, maybe put in a more useful one later" --- config/initializers/_load_app_config.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/initializers/_load_app_config.rb b/config/initializers/_load_app_config.rb index 6d9689846..33897ab69 100644 --- a/config/initializers/_load_app_config.rb +++ b/config/initializers/_load_app_config.rb @@ -27,5 +27,3 @@ APP_CONFIG[:pod_url].chop! if APP_CONFIG[:pod_url][-1, 1] == '/' APP_CONFIG[:pod_url] = APP_CONFIG[:pod_url] + '/' puts "WARNING: Please modify your app_config.yml to have a proper pod_url!" if APP_CONFIG[:terse_pod_url] == "example.org" && Rails.env != "test" -Rails.logger.fatal( - "event=app_config_loaded time='#{Time.now}'")