fluent-plugin-nais 0.10.4 → 0.10.5

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: efd6c4b5fc295adc8334c6756f51f15aae0a35c1
4
- data.tar.gz: 21c0501ef698f9239ba29e8fbf046823e9102a97
3
+ metadata.gz: 7a0ced6ea64301715f1502a4c01b23c0d24e4835
4
+ data.tar.gz: 1266797a875ff32826ed331e804d5722abd8a2a4
5
5
  SHA512:
6
- metadata.gz: 4a7f5eafeeca1d7d8ce9a1f58ba50c062471efdd7f32b2ed5fb77c4201d663d48d52f2db18ec8ab999e2a1044f0c777b9e363f9dd49bb1c5624a3b4efbddebaa
7
- data.tar.gz: 6ee4952d69bc0f9616f7aa59201952e62dfd959386394d94d82b1bd236c13effcea8fae7d8cbcaf0f147074c05ad19f9b083a5e5d320332e38b8f248c98949c6
6
+ metadata.gz: 7114222b03b1742fd7f7d95702e15c06ea78c9673d8e294f3fea90840065537feb418d8310d43651aced69e25f6f1777d5a8ecbb93806ee4bf1700dd06540d2d
7
+ data.tar.gz: cca7f1dedeff7be44669be30eca2e591f9b170e5dd14c1e1352baf7c8e0f81afc1a17c7a061d23700659ef02c812f1547a293e99c25ef100aaae03f120b11093
@@ -40,8 +40,8 @@ module Fluent::Plugin
40
40
  r = ::Nais::Log::Parser.parse_influxdb(record['log'])
41
41
  unless r.nil?
42
42
  if r['component'] == 'httpd'
43
- r['log'] = r.delete('request')
44
- r['request'] = r.delete('request_id')
43
+ r['log'] = r.delete('request') unless r['request'].nil?
44
+ r['request'] = r.delete('request_id') unless r['request_id'].nil?
45
45
  level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
46
46
  r['level'] = level unless level.nil?
47
47
  else
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.10.4"
4
+ VERSION = "0.10.5"
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.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum