Skip to content

Commit

Permalink
add logging when restart required due to config change
Browse files Browse the repository at this point in the history
  • Loading branch information
lap1817 committed Sep 2, 2017
1 parent 653bda2 commit 75fe0ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/synapse/config_generator/haproxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ def generate_config(watchers)
# if watcher_config is changed, trigger restart
config_diff = HashDiff.diff(@state_cache.config_for_generator(watcher.name), watcher_config)
if !config_diff.empty?
log.info "synapse: restart required because config_for_generator changed. before: #{@state_cache.config_for_generator(watcher.name)}, after: #{watcher_config}"
@restart_required = true
end

Expand Down

0 comments on commit 75fe0ee

Please sign in to comment.