Permalink
Browse files

Tweak logging

  • Loading branch information...
1 parent 677cddf commit 315a1f8776292b8a073d385f26bfbe0f40f69528 @rwdaigle committed May 9, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 Procfile
  2. +1 −1 config/initializers/wordnik.rb
  3. +1 −1 lib/event_logging.rb
  4. +1 −1 lib/tasks/ptls.rake
View
@@ -1,3 +1,3 @@
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
-worker: bundle exec rake jobs:work
-clock: bundle exec clockwork clock.rb
+#worker: bundle exec rake jobs:work
+#clock: bundle exec clockwork clock.rb
@@ -1,5 +1,5 @@
Wordnik.configure do |config|
config.api_key = ENV['WORDNIK_API_KEY']
config.response_format = 'json'
- config.logger = Logger.new(STDOUT)
+ config.logger = Rails.logger
end
View
@@ -23,7 +23,7 @@ def caller_method(depth=1)
end
def event_logger
- ActiveRecord::Base.logger
+ Rails.logger
end
# Stolen from ActionMailer, where this was used but was not made reusable
View
@@ -10,7 +10,7 @@ namespace :ptls do
desc "Load words from external sources"
task :load => :environment do
- puts "Enqueuing WordnikWODLoader.load!"
+ # puts "Enqueuing WordnikWODLoader.load!"
# $queue.enqueue("WordnikWODLoader.load!")
WordnikWODLoader.load!(Date.today)
end

0 comments on commit 315a1f8

Please sign in to comment.