raven-transports-fluentd 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/fluent/plugin/out_raven.rb +10 -2
- data/raven-transports-fluentd.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b994ac6844996a80dbbeb961c379a010a08acedf1286ee998366b355fa88751
|
4
|
+
data.tar.gz: 89bff5df80329edb5fbfb9fa5b4d2fe13aa630da16c0110fe57ee9e71957de61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6ad7fb106e96ca4176b9ca70a0bde944fe56d2a8ab2574eceda1916047ba350ddd0d0741718cc5513c2c7749a6645f8834b0e58bb7bab1beccccc98c2e6ff2d
|
7
|
+
data.tar.gz: 4339e9896e9d826c871e25a262249d57a72526cf60e8387f61e56079c155aa851c0e023ec9ca917c9cede8755bc97c71d83720db81a964c284759cf8658bbbc4
|
data/CHANGELOG.md
CHANGED
@@ -8,7 +8,7 @@ module Fluent
|
|
8
8
|
config_param :ssl_verification, :bool, default: false
|
9
9
|
config_param :timeout, :integer, default: 1
|
10
10
|
config_param :open_timeout, :integer, default: 1
|
11
|
-
config_param :raven_log_path, :string
|
11
|
+
config_param :raven_log_path, :string, default: nil
|
12
12
|
config_param :raven_log_level, :string, default: 'info'
|
13
13
|
|
14
14
|
def configure(conf)
|
@@ -22,8 +22,16 @@ module Fluent
|
|
22
22
|
@base_configuration.timeout = conf['timeout']
|
23
23
|
@base_configuration.open_timeout = conf['open_timeout']
|
24
24
|
|
25
|
+
if conf['raven_log_path'].nil?
|
26
|
+
log.warn("`raven_log_level` is meaningless when `raven_log_path` isn't set")
|
27
|
+
end
|
28
|
+
|
25
29
|
Raven.configure do |config|
|
26
|
-
config.logger =
|
30
|
+
config.logger = if conf['raven_log_path'].nil?
|
31
|
+
log
|
32
|
+
else
|
33
|
+
Logger.new(conf['raven_log_path'], log_level(conf['raven_log_level']))
|
34
|
+
end
|
27
35
|
end
|
28
36
|
end
|
29
37
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "raven-transports-fluentd"
|
7
|
-
spec.version = '0.
|
7
|
+
spec.version = '0.3.0'
|
8
8
|
spec.authors = ["Naoto Takai", "Kohei Suzuki"]
|
9
9
|
spec.email = ["takai@cookpad.com", "kohei-suzuki@cookpad.com"]
|
10
10
|
spec.summary = %q{Send error logs to sentry via fluentd.}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raven-transports-fluentd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naoto Takai
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.0.
|
107
|
+
rubygems_version: 3.0.6
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Send error logs to sentry via fluentd.
|