Commit a762ccc6 authored by Dylan Griffith's avatar Dylan Griffith

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

Log more information when service discovery fails

See merge request gitlab-org/gitlab!68602
parents 48b17dba 80e0ffc2
......@@ -89,8 +89,10 @@ module Gitlab
# Sentry, instead of silently terminating this thread.
Gitlab::ErrorTracking.track_exception(error)
Gitlab::AppLogger.error(
"Service discovery encountered an error: #{error.message}"
Gitlab::Database::LoadBalancing::Logger.error(
event: :service_discovery_failure,
message: "Service discovery encountered an error: #{error.message}",
host_list_length: load_balancer.host_list.length
)
# Slightly randomize the retry delay so that, in the case of a total
......
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