Commit 2cde78e782d76276fc7062a5217bada87fa4ec8b

Authored by Brian Armstrong
1 parent 6061d92f8f

removing puts

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

lib/bitcoin/protocol/parser.rb
... ... @@ -2,12 +2,14 @@
2 2 module Protocol
3 3  
4 4 class Parser
5   - @log = Bitcoin::Logger.create("parser")
6   -
  5 +
7 6 def initialize(handler=nil)
8 7 @h = handler || Handler.new
9 8 @buf = ""
  9 + @log = Bitcoin::Logger.create("parser")
10 10 end
  11 +
  12 + def log; @log; end
11 13  
12 14 # handles inv/getdata packets
13 15 #
14 16  
... ... @@ -120,9 +122,9 @@
120 122 def handle_error(type, msg)
121 123 case type
122 124 when :close
123   - @log.debug {"closing packet stream (#{msg})"}
  125 + log.debug {"closing packet stream (#{msg})"}
124 126 else
125   - @log.debug { [type, msg] }
  127 + log.debug { [type, msg] }
126 128 end
127 129 end
128 130 end # Parser