aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-02-05 23:54:41 -0800
committerPete Higgins <pete@peterhiggins.org>2012-02-05 23:54:41 -0800
commit2275cde2acfff33fd52b852e08e85bcd99f0850f (patch)
treee288669d24056706f89b859166a85d148e827259 /config
parent1af631b501bbd8457d114805f729e8af59edeeee (diff)
downloadrefinerycms-blog-2275cde2acfff33fd52b852e08e85bcd99f0850f.tar.gz
refinerycms-blog-2275cde2acfff33fd52b852e08e85bcd99f0850f.tar.bz2
refinerycms-blog-2275cde2acfff33fd52b852e08e85bcd99f0850f.zip
Stop logging to stdout.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/url_validator.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/initializers/url_validator.rb b/config/initializers/url_validator.rb
index 15635e0..d956d04 100644
--- a/config/initializers/url_validator.rb
+++ b/config/initializers/url_validator.rb
@@ -47,11 +47,10 @@ class RedirectFollower
def initialize(url, limit=5)
@url, @redirect_limit = url, limit
- logger.level = Logger::INFO
end
def logger
- @logger ||= Logger.new(STDOUT)
+ @logger ||= Rails.logger
end
def resolve
@@ -82,4 +81,4 @@ class RedirectFollower
response['location']
end
end
-end \ No newline at end of file
+end