Skip to content

Commit

Permalink
change $log to log
Browse files Browse the repository at this point in the history
In order to be able to use different log level in per plugin

Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
  • Loading branch information
ganmacs committed Feb 3, 2020
1 parent 69901c4 commit 0ffdd84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def start
FileUtils.mkdir_p(pos_file_dir) unless Dir.exist?(pos_file_dir)
@pf_file = File.open(@pos_file, File::RDWR|File::CREAT|File::BINARY, @file_perm)
@pf_file.sync = true
@pf = PositionFile.load(@pf_file, logger: $log)
@pf = PositionFile.load(@pf_file, logger: log)

if @pos_file_compaction_interval
timer_execute(:in_tail_refresh_compact_pos_file, @pos_file_compaction_interval) do
$log.info('Clean up the pos file')
log.info('Clean up the pos file')
@pf.try_compact
end
end
Expand Down

0 comments on commit 0ffdd84

Please sign in to comment.