Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
removes 'logger' calls for folks using this outside of a Rails app
Browse files Browse the repository at this point in the history
  • Loading branch information
mepatterson authored and artob committed Jan 17, 2010
1 parent 0b72091 commit 190f119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crm114.rb
Expand Up @@ -44,7 +44,7 @@ def learn!(category, text, &block)
stdin.write(text)
stdin.close
@result, @err = stdout.read, stderr.read
logger.error "CRM114(learn!) ERROR: #{@err}" if @err.size > 0
puts "CRM114(learn!) ERROR: #{@err}" if @err.size > 0
end
text.size
end
Expand Down Expand Up @@ -75,7 +75,7 @@ def classify(text = nil, &block)
stdin.write(text)
stdin.close
@result, @err = stdout.read, stderr.read
logger.error "CRM114(classify) ERROR: #{@err}" if @err.size > 0
puts "CRM114(classify) ERROR: #{@err}" if @err.size > 0
end
result = @result
return [nil, 0.0] unless result && result.include?("\t")
Expand Down

0 comments on commit 190f119

Please sign in to comment.