lib/riemann/tools.rb in riemann-tools-0.1.4 vs lib/riemann/tools.rb in riemann-tools-0.1.5

- old
+ new

@@ -53,23 +53,26 @@ end] end def report(event) if options[:tag] - event[:tags] = options[:tag] + # Work around a bug with beefcake which can't take frozen strings. + event[:tags] = options[:tag].map(&:dup) end if options[:ttl] event[:ttl] = options[:ttl] end if options[:event_host] - event[:host] = options[:event_host] + event[:host] = options[:event_host].dup end + + event = event.merge(attributes) begin Timeout::timeout(options[:timeout]) do - riemann << event.merge(attributes) + riemann << event end rescue Timeout::Error riemann.connect end end