lib/fluent/plugin/in_systemd.rb in fluent-plugin-systemd-1.0.0 vs lib/fluent/plugin/in_systemd.rb in fluent-plugin-systemd-1.0.1
- old
+ new
@@ -64,12 +64,9 @@
def init_journal
# TODO: ruby 2.3
@journal.close if @journal # rubocop:disable Style/SafeNavigation
@journal = Systemd::Journal.new(path: @path)
- # make sure initial call to wait doesn't return :invalidate
- # see https://github.com/ledbettj/systemd-journal/issues/70
- @journal.wait(0)
@journal.filter(*(@matches || @filters))
seek
true
rescue Systemd::JournalError => e
log.warn("#{e.class}: #{e.message} retrying in 1s")