Commit 59ac8ccc63f9090017a81a25d67a82dfe0854a00

Authored by Brian Armstrong
1 parent 0e62be3382

removing puts

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

lib/bitcoin/protocol/parser.rb
... ... @@ -2,6 +2,8 @@
2 2 module Protocol
3 3  
4 4 class Parser
  5 + @log = Bitcoin::Logger.create("parser")
  6 +
5 7 def initialize(handler=nil)
6 8 @h = handler || Handler.new
7 9 @buf = ""
8 10  
... ... @@ -114,9 +116,9 @@
114 116 def handle_error(type, msg)
115 117 case type
116 118 when :close
117   - puts "closing packet stream (#{msg})"
  119 + @log.debug {"closing packet stream (#{msg})"}
118 120 else
119   - p [type, msg]
  121 + @log.debug { [type, msg] }
120 122 end
121 123 end
122 124 end # Parser