fluent-plugin-systemd 1.0.4 → 1.0.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
  SHA256:
3
- metadata.gz: 194ee210390aeeb11282e5d7691bb4694d1978fd760abc8eb1ef078864ecc362
4
- data.tar.gz: 8ccbbcff3e50c691a36f6fdaf66122882af8daa0201ff137218aa28018e31f84
3
+ metadata.gz: 4cb4c7536e7d15ebea8d31cab4e9bd1902cfcdf3fcb9adba98b7c957d16a78f0
4
+ data.tar.gz: 1d18922ec4c903834251e2a325e911c9d4746c164b69d2947aadb0b3c768ab3e
5
5
  SHA512:
6
- metadata.gz: 39823bce21570d0b8721e7427589a6b85f811f70d79e9a61b959e6408fff607d73786e1e2d431f912d79892fcf41c892cb4dd6d67ba2a26f9b923f747d2beb05
7
- data.tar.gz: 12355bccdcec5a37420a50f81e295c3778b233ecba77748bf88fcbe4c9d042d519550a26f9143ad98401ff541c1810bceefe0b5ee41f9e196f2c42323e1662d6
6
+ metadata.gz: 601f2f07b040378c78a53f8cdce16a53a3d691a9634b4a8e7d85c4c6bf1ec5c2d84f52271ff0a6040d70437f97f975825ff228809e7524921b02bdcd0715c154
7
+ data.tar.gz: 0f42d023c28dbd644391693c7973ccb34542fc71fcf5e0b2ac97178522549fc7e2dd43b6472622d313a9008073c9712d8b15eb809bc676ca1121e5ec5cd669a9
@@ -21,7 +21,7 @@ require 'fluent/plugin/systemd/entry_mutator'
21
21
  module Fluent
22
22
  module Plugin
23
23
  # Fluentd plugin for reading from the systemd journal
24
- class SystemdInput < Input
24
+ class SystemdInput < Input # rubocop:disable Metrics/ClassLength
25
25
  Fluent::Plugin.register_input('systemd', self)
26
26
 
27
27
  helpers :timer, :storage
@@ -63,6 +63,10 @@ module Fluent
63
63
 
64
64
  def shutdown
65
65
  @running = false
66
+ @journal&.close
67
+ @journal = nil
68
+ @pos_storage = nil
69
+ @mutator = nil
66
70
  super
67
71
  end
68
72
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-systemd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-24 00:00:00.000000000 Z
11
+ date: 2021-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler