lib/tunemygc/syncer.rb in tunemygc-1.0.29 vs lib/tunemygc/syncer.rb in tunemygc-1.0.30

- old
+ new

@@ -91,13 +91,15 @@ # Prefer to loose data points than accumulate buffers indefinitely on error or other conditions snapshotter.clear end def process_config_callback(response) + report_url = nil config = client.get(URI(response.body).path) - ActiveSupport::JSON.decode(config.body).merge('report' => response.body.gsub(/\.json$/, '')) + ActiveSupport::JSON.decode(config.body).merge('report' => report_url) + report_url = response.body.gsub(/\.json$/, '') rescue Exception => e - TuneMyGc.log "Failed to process config callback url #{response.body} (error: #{e})" + TuneMyGc.log "Please visit #{report_url} to view your configuration and other Garbage Collector insights" return false end end end \ No newline at end of file