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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f4c2e998dd4d25861c9bac4ed5c4e7d2a19ba4d1ff7148802d4bd78a61f6dd4
4
- data.tar.gz: 1d4edc13ec28f3a6539927550993d8895498509f409b97665dfaa12a9f7dab2c
3
+ metadata.gz: 8b994ac6844996a80dbbeb961c379a010a08acedf1286ee998366b355fa88751
4
+ data.tar.gz: 89bff5df80329edb5fbfb9fa5b4d2fe13aa630da16c0110fe57ee9e71957de61
5
5
  SHA512:
6
- metadata.gz: ae6ce35c4220a6444b9432164eb82acf9ca506f93ae9bb126dc8da646a7fa788f7071106cb01bc677366112f5db533bd6f173d70d308194881e169debb5036bc
7
- data.tar.gz: 9cd9c36ba07610e28ecbe275fc6e4078857c7f37b8d2b5a08876bbf1a247ea743d99acd7bbaf3bc52897e99ca3d17c8460e5d79efa87e6ca8a7d03b272290b52
6
+ metadata.gz: c6ad7fb106e96ca4176b9ca70a0bde944fe56d2a8ab2574eceda1916047ba350ddd0d0741718cc5513c2c7749a6645f8834b0e58bb7bab1beccccc98c2e6ff2d
7
+ data.tar.gz: 4339e9896e9d826c871e25a262249d57a72526cf60e8387f61e56079c155aa851c0e023ec9ca917c9cede8755bc97c71d83720db81a964c284759cf8658bbbc4
@@ -1,3 +1,6 @@
1
+ ## 0.3.0 (2019-08-27)
2
+ - Store log of Raven via Fluent::Log
3
+
1
4
  ## 0.2.2 (2019-03-20)
2
5
  - Update Fluentd plugin to support multi process workers
3
6
 
@@ -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 = Logger.new(conf['raven_log_path'], log_level(conf['raven_log_level']))
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.2.2'
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.2.2
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-03-20 00:00:00.000000000 Z
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.1
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.