Navigation Menu

Skip to content

Commit

Permalink
Output more trace logs for fluent receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 22, 2015
1 parent 2061761 commit 103d889
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/droonga/fluent_message_receiver.rb
Expand Up @@ -103,8 +103,12 @@ def start_server
end
client.on_close = lambda do
@clients.delete(client)
if @on_shutdown_ready and @clients.empty?
@on_shutdown_ready.call
if @on_shutdown_ready
logger.trace("Client: a client is disconnected. still waiting for #{@clients.size} clients.",
:clients => @clients)
if @clients.empty?
@on_shutdown_ready.call
end
end
end
@clients << client
Expand Down

0 comments on commit 103d889

Please sign in to comment.