Navigation Menu

Skip to content

Commit

Permalink
Make trace logs more meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 23, 2015
1 parent 6431d27 commit 9626399
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/droonga/engine.rb
Expand Up @@ -78,23 +78,22 @@ def stop_gracefully
logger.trace("stop_gracefully: start")
@cluster.shutdown
on_finish = lambda do
logger.trace("stop_gracefully/on_finish: start")
logger.trace("stop_gracefully: middle")
@export_last_processed_message_timestamp_observer.stop
export_last_processed_message_timestamp
@dispatcher.stop_gracefully do
@state.shutdown
yield
logger.trace("stop_gracefully/on_finish: done")
logger.trace("stop_gracefully: done")
end
end
if @state.have_session?
logger.trace("stop_gracefully/having sessions")
logger.trace("stop_gracefully: having sessions")
@state.on_finish = on_finish
else
logger.trace("stop_gracefully/no session")
logger.trace("stop_gracefully: no session")
on_finish.call
end
logger.trace("stop_gracefully: done")
end

# It may be called after stop_gracefully.
Expand Down

0 comments on commit 9626399

Please sign in to comment.