Permalink
Browse files

tweaking the process news items script

  • Loading branch information...
erik
erik committed Jan 18, 2012
1 parent 60b64a6 commit 2532198c258e030fe16de3dc88873b0cb7baaa96
Showing with 1 addition and 2 deletions.
  1. +1 −2 script/process_news_items
@@ -5,7 +5,6 @@ require 'net/http'
require 'rubygems'
require 'logger'
-config = YAML.load(File.read(File.join(File.dirname(__FILE__), '..', 'config', 'mail.yml')))[Rails.env]
log = Logger.new(STDOUT)
log.info Time.now.to_s + " Warming up processor to extract entities form news_items..."
@@ -17,7 +16,7 @@ begin
nr = 1
news_items.each do |ni|
- log.info(" -- Processing News Item #{nr} with id #{ni.id} and title #{ni.title}")
+ log.info(" -- Processing News Item #{nr} with id #{ni.id} and title #{ni.headline}")
ni.detect_entities
sleep 1
nr += 1

0 comments on commit 2532198

Please sign in to comment.