Navigation Menu

Skip to content

Commit

Permalink
Output more trace logs around graceful stop
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 22, 2015
1 parent 97b7b2b commit 26b5e57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/droonga/fluent_message_receiver.rb
Expand Up @@ -47,9 +47,12 @@ def stop_gracefully(&block)
logger.trace("stop_gracefully: middle")
shutdown_server
if @clients.empty?
logger.trace("stop_gracefully: no connecting client")
yield
elsif block_given?
logger.trace("stop_gracefully: waiting for #{@clients.size} clients to be disconnected")
@on_shutdown_ready = lambda do
logger.trace("stop_gracefully: all clients are disconnected")
yield
end
end
Expand Down

0 comments on commit 26b5e57

Please sign in to comment.