Commit 3820b1ec authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'stomlinson/service-discovery-logging' into 'master'

Log service discovery host list updates

See merge request gitlab-org/gitlab!68300
parents 9f3a8f88 bbb9df1b
......@@ -35,6 +35,12 @@ module Gitlab
def hosts=(hosts)
@mutex.synchronize do
::Gitlab::Database::LoadBalancing::Logger.info(
event: :host_list_update,
message: "Updating the host list for service discovery",
host_list_length: hosts.length,
old_host_list_length: @hosts.length
)
@hosts = hosts
unsafe_shuffle
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment