Skip to content

Commit

Permalink
Remove broken/verbose logging output.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 24, 2017
1 parent 3b0bb42 commit 132f603
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/async/dns/handler.rb
Expand Up @@ -68,8 +68,6 @@ def process_query(data, options)
# Handling incoming UDP requests, which are single data packets, and pass them on to the given server.
class DatagramHandler < GenericHandler
def run(task: Async::Task.current)
Async.logger.debug(self.class.name) {"-> Run on #{socket}..."}

@address.bind do |socket|
while true
Async.logger.debug(self.class.name) {"-> socket.recvfrom"}
Expand All @@ -81,8 +79,6 @@ def run(task: Async::Task.current)
end
end
end
ensure
Async.logger.debug(self.class.name) {"<- Run ensure... #{$!}"}
end

def respond(socket, input_data, remote_address)
Expand Down Expand Up @@ -114,13 +110,9 @@ def respond(socket, input_data, remote_address)

class StreamHandler < GenericHandler
def run(task: Async::Task.current)
Async.logger.debug(self.class.name) {"-> Run on #{socket}..."}

@address.accept do |client, address|
handle_connection(client)
end
ensure
Async.logger.debug(self.class.name) {"<- Run ensure... #{$!}"}
end

def handle_connection(socket)
Expand Down

0 comments on commit 132f603

Please sign in to comment.