From 5542c6f3ff4585b965bd76e692f1ab2b3ce0d830 Mon Sep 17 00:00:00 2001 From: Mathias Meyer <meyer@paperplanes.de> Date: Wed, 23 Apr 2014 13:28:23 +0200 Subject: [PATCH] Add error handler, remove prefix. --- lib/travis/api/app.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 59b9e104..f1596b7d 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -181,11 +181,11 @@ module Travis::Api Travis::Notification.setup(instrumentation: false) if Travis.config.librato - email, token, source, prefix = Travis.config.librato.email, + email, token, source = Travis.config.librato.email, Travis.config.librato.token, - Travis.config.librato_source, - Travis.config.librato_prefix - Metriks::LibratoMetricsReporter.new(email, token, source: source, prefix: prefix).start + Travis.config.librato_source + on_error = proc {|ex| puts ex.message} + Metriks::LibratoMetricsReporter.new(email, token, source: source, prefix: prefix, on_error: on_error).start end end