honeybadger 1.16.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96b32638a5a4110849fe17df1314fe7af3c7db78
4
- data.tar.gz: d7336c7884a124058b0c244d7853848fe5576c62
3
+ metadata.gz: f7d29474030f789eec2d1153c8a7aebc70a03a31
4
+ data.tar.gz: 89dd615dbd9c9176ca7f0b36f62787826fb2d1f5
5
5
  SHA512:
6
- metadata.gz: 622deae28180540415aade234278decc7fc70bf4903adff5fa0259f6dedd7e6a87af629fe6e9b28f9dd185ffc66ae04bc0885fc684c68c2ee679461575eb2f5a
7
- data.tar.gz: 2130c58c2ba59741f5ed5da2d45ffb180f06e7fb11d9b9ea4f20412ad3365ce710380e5153b794456ce04abf2755be63a96c7c3082a4af020277ee6e5ee48ef4
6
+ metadata.gz: 7074c9cb5c7e1daf11316fac323145db2e6873bc6962fc55e28b8cc2a8fba08df0615e1eba4b616da6daca4031886480ab9d0dfb2a6704aaaedc68bd14648787
7
+ data.tar.gz: f721b25288460560cf6415a4d7befe707ce85cfe43cbce3e12f60a799a171f00a7a9c99d9bf0067823c5d4455a5bd3baaaa1cbc4de6fbc8d8adcf81b598c3d63
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Honeybadger 1.16.1 ##
2
+
3
+ * Add debug logging of successful ping responses.
4
+
5
+ *Joshua Wood*
6
+
7
+ * Don't log when metrics/traces are disabled by service.
8
+
9
+ *Joshua Wood*
10
+
1
11
  ## Honeybadger 1.16.0 ##
2
12
 
3
13
  * Compress requests using deflate.
@@ -24,6 +34,8 @@
24
34
 
25
35
  * Ruby 1.8.7 and 1.9.2 are no longer supported.
26
36
 
37
+ *Joshua Wood*
38
+
27
39
  ## Honeybadger 1.15.3 ##
28
40
 
29
41
  * Send User-Agent header
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- honeybadger (1.16.0)
4
+ honeybadger (1.16.1)
5
5
  json
6
6
 
7
7
  GEM
data/honeybadger.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'honeybadger'
7
- s.version = '1.16.0'
7
+ s.version = '1.16.1'
8
8
  s.date = '2014-07-09'
9
9
 
10
10
  s.summary = 'Error reports you can be happy about.'
@@ -71,6 +71,7 @@ module Honeybadger
71
71
  response = send_request('/v1/ping/', data.to_json)
72
72
 
73
73
  if Net::HTTPSuccess === response
74
+ log(Honeybadger.configuration.debug ? :info : :debug, "Ping Success: #{response.class}", response, data)
74
75
  JSON.parse(response.body)
75
76
  else
76
77
  log(:error, "Ping Failure: #{response.class}", response, data)
data/lib/honeybadger.rb CHANGED
@@ -20,7 +20,7 @@ require 'honeybadger/railtie' if defined?(Rails::Railtie)
20
20
  require 'honeybadger/monitor'
21
21
 
22
22
  module Honeybadger
23
- VERSION = '1.16.0'.freeze
23
+ VERSION = '1.16.1'.freeze
24
24
  LOG_PREFIX = "** [Honeybadger] ".freeze
25
25
 
26
26
  HEADERS = {
@@ -106,17 +106,8 @@ module Honeybadger
106
106
  if result = sender.ping({ :version => Honeybadger::VERSION, :framework => configuration.framework, :environment => configuration.environment_name, :hostname => configuration.hostname })
107
107
  if features = result['features']
108
108
  configuration.features = features
109
-
110
- unless features['metrics']
111
- write_verbose_log("The optional metrics feature is not enabled for your account. Try restarting your app or contacting support@honeybadger.io if your subscription includes this feature.", :warn)
112
- configuration.metrics = false
113
- end
114
-
115
- unless features['traces']
116
- write_verbose_log("The optional traces feature is not enabled for your account. Try restarting your app or contacting support@honeybadger.io if your subscription includes this feature.", :warn)
117
- configuration.traces = false
118
- end
119
-
109
+ configuration.metrics = false unless features['metrics']
110
+ configuration.traces = false unless features['traces']
120
111
  features
121
112
  end
122
113
  end
@@ -65,21 +65,11 @@ describe 'Honeybadger' do
65
65
  context "metrics are disabled by service" do
66
66
  let(:result) { {'features' => {'metrics' => false}} }
67
67
  specify { expect { invoke_subject }.to change(config, :metrics).to(false) }
68
-
69
- it "logs that metrics are disabled" do
70
- Honeybadger.should_receive(:write_verbose_log).with(/metrics feature is not enabled/, :warn)
71
- invoke_subject
72
- end
73
68
  end
74
69
 
75
70
  context "traces are disabled by service" do
76
71
  let(:result) { {'features' => {'traces' => false}} }
77
72
  specify { expect { invoke_subject }.to change(config, :traces).to(false) }
78
-
79
- it "logs that traces are disabled" do
80
- Honeybadger.should_receive(:write_verbose_log).with(/traces feature is not enabled/, :warn)
81
- invoke_subject
82
- end
83
73
  end
84
74
  end
85
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Wood