Skip to content

Commit

Permalink
Output "info" log when cluster state is reloaded, even if the state i…
Browse files Browse the repository at this point in the history
…s not changed
  • Loading branch information
piroor committed Dec 26, 2014
1 parent 2f307b6 commit 8367546
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/droonga/cluster_state.rb
Expand Up @@ -52,8 +52,10 @@ def reload
old_state = to_hash
clear_cache
@state = state
logger.info("live-nodes-list loaded")
unless to_hash == old_state
if to_hash == old_state
logger.info("cluster state not changed")
else
logger.info("cluster state changed")
on_change
end
end
Expand Down

0 comments on commit 8367546

Please sign in to comment.