Skip to content

Commit 0162182

Browse files
authored
Update lib/filewatch/tail_mode/handlers/base.rb
1 parent e2673f0 commit 0162182

File tree

1 file changed

+1
-1
lines changed
  • lib/filewatch/tail_mode/handlers

1 file changed

+1
-1
lines changed

Diff for: lib/filewatch/tail_mode/handlers/base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def add_or_update_sincedb_collection(watched_file)
110110
update_existing_sincedb_collection_value(watched_file, sincedb_value)
111111
watched_file.initial_completed
112112
else
113-
logger.trace("add_or_update_sincedb_collection: found sincedb record",
113+
logger.trace? && logger.trace("add_or_update_sincedb_collection: found sincedb record",
114114
:sincedb_key => watched_file.sincedb_key, :sincedb_value => sincedb_value)
115115
# detected a rotation, Discoverer can't handle this because this watched file is not a new discovery.
116116
# we must handle it here, by transferring state and have the sincedb value track this watched file

0 commit comments

Comments
 (0)