Skip to content

Commit cee0d67

Browse files
committed
Print some logs.
1 parent ca97946 commit cee0d67

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/async/http/protocol/http1/finishable.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class Finishable < ::Protocol::HTTP::Body::Wrapper
1515
def initialize(body)
1616
super(body)
1717

18+
$stderr.puts "Finishable#initialize: #{body.inspect}"
19+
1820
@closed = Async::Variable.new
1921
@error = nil
2022

@@ -28,12 +30,16 @@ def reading?
2830
def read
2931
@reading = true
3032

31-
super
33+
super.tap do |chunk|
34+
$stderr.puts "Finishable#read: #{chunk.inspect}"
35+
end
3236
end
3337

3438
def close(error = nil)
3539
super
3640

41+
$stderr.puts "Finishable#close: #{error.inspect}"
42+
3743
unless @closed.resolved?
3844
@error = error
3945
@closed.value = true

0 commit comments

Comments
 (0)