mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Merge pull request #379 from mattkirby/graphite_error
Rescue and warn when graphite connection cannot be opened
This commit is contained in:
commit
fc4ae967af
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue