Skip to content

Commit c3dfe17

Browse files
authored
Merge pull request #119 from Watson1978/fix-memory-usage
Fix memory usage
2 parents 57e056a + c3094d9 commit c3dfe17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fluent-plugin-systemd.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
2424
spec.add_development_dependency 'rubocop', '1.13.0'
2525

2626
spec.add_runtime_dependency 'fluentd', ['>= 0.14.11', '< 2']
27-
spec.add_runtime_dependency 'systemd-journal', '~> 2.0.0'
27+
spec.add_runtime_dependency 'systemd-journal', '~> 2.1.0'
2828
end

lib/fluent/plugin/in_systemd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def shutdown
7575
def init_journal
7676
# TODO: ruby 2.3
7777
@journal.close if @journal # rubocop:disable Style/SafeNavigation
78-
@journal = Systemd::Journal.new(path: @path)
78+
@journal = Systemd::Journal.new(path: @path, auto_reopen: true)
7979
@journal.filter(*(@matches || @filters))
8080
seek
8181
true

0 commit comments

Comments
 (0)