Merge pull request #379 from mattkirby/graphite_error

Rescue and warn when graphite connection cannot be opened
This commit is contained in:
Brandon High 2020-06-05 12:08:47 -07:00 committed by GitHub
commit fc4ae967af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,8 @@ module Vmpooler
socket.close socket.close
end end
end end
rescue Errno::EADDRNOTAVAIL => e
warn "Could not assign address to graphite server #{server}: #{e}"
rescue StandardError => e rescue StandardError => e
warn "Failure logging #{path} to graphite server [#{server}:#{port}]: #{e}" warn "Failure logging #{path} to graphite server [#{server}:#{port}]: #{e}"
end end