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 +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +1 -1
- data/honeybadger.gemspec +1 -1
- data/lib/honeybadger/sender.rb +1 -0
- data/lib/honeybadger.rb +3 -12
- data/spec/honeybadger/notifier_spec.rb +0 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7d29474030f789eec2d1153c8a7aebc70a03a31
|
4
|
+
data.tar.gz: 89dd615dbd9c9176ca7f0b36f62787826fb2d1f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/honeybadger.gemspec
CHANGED
data/lib/honeybadger/sender.rb
CHANGED
@@ -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.
|
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['
|
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
|
|