Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak logging

  • Loading branch information...
commit 315a1f8776292b8a073d385f26bfbe0f40f69528 1 parent 677cddf
@rwdaigle authored
View
4 Procfile
@@ -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
View
2  config/initializers/wordnik.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
2  lib/event_logging.rb
@@ -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
2  lib/tasks/ptls.rake
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.