fluent-plugin-nais 0.10.1 → 0.10.2

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
  SHA1:
3
- metadata.gz: 716c54e3ddb9f88a545c325642010fded15e8d71
4
- data.tar.gz: e99354cbf1a38aabc9585e0e287d47275e778baa
3
+ metadata.gz: e622320fba1cc8eeb0e5826f1ee82667db83411d
4
+ data.tar.gz: 44a07f8b9b483b65daca37e92b1af59a377b74b7
5
5
  SHA512:
6
- metadata.gz: e2d953eb583ce9c64b3e194f379b437cfdbde675b786ffedbf64215fff87d29b66a3a13e28cbd3621140adbe9905a183a188e41005e55135b1f2a0bb55d5d779
7
- data.tar.gz: a05e8c96529342ed06f843236eb8ff3fce4c6865b73141e36b7b14e28754d2bc3ccd0eade82cf7672ab0500e6e39f1782cd69de507d6bf406d33e67f960c1e29
6
+ metadata.gz: 68ac8dafecedd3ccd145f0e87af4b55a1c603e013a78fc99857ceb77d7c9482ce5d065e47812279e645355d0dfd8f9a6eb9ef509c57021f3844660c46ff99a49
7
+ data.tar.gz: 600e22365e66ec6422d9de27439d82e2a2ae6023f0a3aeff2a85d55cecc684ffd715f5bf0c64164c4e40eae5a2695eb0d6fe49f46e0c389feb2aa06749be04ee
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  spec.add_dependency 'fluentd', '~> 0.14'
24
- spec.add_dependency 'nais-log-parser', '>= 0.13.0'
24
+ spec.add_dependency 'nais-log-parser', '>= 0.13.1'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -11,21 +11,21 @@ module Fluent::Plugin
11
11
  end
12
12
 
13
13
  def filter(tag, time, record)
14
- r = nil
15
14
  if record['kubernetes'].is_a?(Hash) && record['kubernetes']['annotations'].is_a?(Hash)
16
15
  transformers = record['kubernetes']['annotations']['nais_io/logtransform']
17
16
  unless transformers.nil?
18
17
  transformer.split(/ *, */).each { |t|
19
18
  if t == 'dns_loglevel'
20
- r = ::Nais::Log::Parser.loglevel_from_dns_response(record['response_code'])
21
- record['level'] = r unless r.nil?
19
+ level = ::Nais::Log::Parser.loglevel_from_dns_response(record['response_code'])
20
+ record['level'] = level unless level.nil?
22
21
  elsif t == 'http_loglevel'
23
- r = ::Nais::Log::Parser.loglevel_from_http_response(record['response_code'])
24
- record['level'] = r unless r.nil?
22
+ level = ::Nais::Log::Parser.loglevel_from_http_response(record['response_code'])
23
+ record['level'] = level unless level.nil?
25
24
  end
26
25
  }
27
26
  end
28
27
  end
28
+ record
29
29
  end
30
30
 
31
31
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-nais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.13.0
33
+ version: 0.13.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.13.0
40
+ version: 0.13.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement