bugsnag-delivery-fluent 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bugsnag-delivery-fluent.gemspec +1 -1
- data/lib/bugsnag/delivery/fluent/version.rb +1 -1
- data/lib/bugsnag/delivery/fluent.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1600b15c31ff5e3592e150d11ebf6e4b003e5b35
|
4
|
+
data.tar.gz: 30c5edbf31cf02902bad322c6cf69d622cfcc838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0cd8a783d0f64330c018744886d3e14bc4173f4467cd26687a52ee078fdf9863d8943feb2c0042f9c2370b57e2d5f2b66c64b8975f4517c46a5634a5fc6f41d
|
7
|
+
data.tar.gz: b174f07adf1b88cf526998c611fc40be7c816553d563332c5884837a6521b763798d2d526cf86d87bbf74c634fc3dafe3cb6be68176bb0ca2e0702ce045db802
|
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'rspec'
|
25
25
|
spec.add_development_dependency 'rspec-mocks'
|
26
26
|
|
27
|
-
spec.add_runtime_dependency 'bugsnag',
|
27
|
+
spec.add_runtime_dependency 'bugsnag', '~> 6.0'
|
28
28
|
spec.add_runtime_dependency 'fluent-logger'
|
29
29
|
end
|
@@ -23,7 +23,7 @@ module Bugsnag
|
|
23
23
|
|
24
24
|
module Delivery
|
25
25
|
class Fluent
|
26
|
-
def self.deliver(url, body, configuration)
|
26
|
+
def self.deliver(url, body, configuration, options = {})
|
27
27
|
begin
|
28
28
|
logger = ::Fluent::Logger::FluentLogger.new(
|
29
29
|
configuration.fluent_tag_prefix,
|
@@ -31,15 +31,15 @@ module Bugsnag
|
|
31
31
|
:port => configuration.fluent_port
|
32
32
|
)
|
33
33
|
if logger.post('deliver', { :url => url, :body => body })
|
34
|
-
|
34
|
+
configuration.debug("Notification to #{url} finished, payload was #{body}")
|
35
35
|
else
|
36
|
-
|
36
|
+
configuration.warn("Notification to #{url} failed, #{logger.last_error}")
|
37
37
|
end
|
38
38
|
rescue StandardError => e
|
39
39
|
raise if e.class.to_s == "RSpec::Expectations::ExpectationNotMetError"
|
40
40
|
|
41
|
-
|
42
|
-
|
41
|
+
configuration.warn("Notification to #{url} failed, #{e.inspect}")
|
42
|
+
configuration.warn(e.backtrace)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag-delivery-fluent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '6.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: fluent-logger
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|