Skip to content

Commit 74441ce

Browse files
committed
Tidy up logging.
1 parent 9ae1f17 commit 74441ce

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ def closed(error = nil)
3232

3333
# Used by the client to send requests to the remote server.
3434
def call(request, task: Task.current)
35-
Console.debug(self) {"#{request.method} #{request.path} #{request.headers.inspect}"}
36-
3735
# Mark the start of the trailers:
3836
trailer = request.headers.trailer!
3937

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def fail_request(status)
3434
write_body(@version, nil)
3535
rescue => error
3636
# At this point, there is very little we can do to recover:
37-
Console::Event::Failure.for(error).emit(self, "Failed to write failure response!", severity: :debug)
37+
Console.debug(self, "Failed to write failure response!", error)
3838
end
3939

4040
def next_request

lib/async/http/protocol/http2/stream.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def process_headers(frame)
6565
@input.close_write
6666
end
6767
rescue ::Protocol::HTTP2::HeaderError => error
68-
Console.debug(self, "Error while processing headers!", error: error)
68+
Console.debug(self, "Error while processing headers!", error)
6969

7070
send_reset_stream(error.code)
7171
end

0 commit comments

Comments
 (0)