logstash-input-file 4.1.8 → 4.1.9

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: b86fa03636ec6ef833c6fced1c2d42abfc5067f34a70bce8d3362a98c91ff566
4
- data.tar.gz: 691ab87c3fd89b33d36ffa151be97cd91147aca22d23c1a20a171adc3d104f05
3
+ metadata.gz: a4cd574c914c10b7f4e538437e8f256bad1c98f3fc96bf9c959589e010586a36
4
+ data.tar.gz: bbe6366ab6f431c9491476b76b3c4dddac051fc7b3a474dd3964bdfd4e1a2afb
5
5
  SHA512:
6
- metadata.gz: fe9f47707469145ca8b5343bcaeeeec17aaf193aad821e23db1400454e1f686e27007365e1c44a2d0f58d1d4cb49cb52cb51af90e5077c6c62cce4dac7c1fa3b
7
- data.tar.gz: 2b531984da98f653dfa25af2b571b401318980f4b6d93043a0d3c1f7a147a39f4174305cb50ce3634875330bcac871c2b4c08d4bdac1c3256a0c7521a15c4233
6
+ metadata.gz: 81736925b4ecc298a76caff16a820d5be68961570dd5456496b5a9a03a80e03a65085abdeba76d1e63fc1f3d3ae15b4ad26f41f03061cae3620303758f1713bc
7
+ data.tar.gz: ce86be6801c71aa9863e61592a244f4cb6a8f4c25e3d7d21e29be8182e5709b54455cb339a183c86e987bec4fd4ea9c969265f3071793e0fa8d74a133c39a3a1
@@ -1,3 +1,6 @@
1
+ ## 4.1.9
2
+ - Fixed issue where logs were being spammed with needless error messages [#224](https://github.com/logstash-plugins/logstash-input-file/pull/224)
3
+
1
4
  ## 4.1.8
2
5
  - Fixed problem in tail and read modes where the read loop could get stuck if an IO error occurs in the loop.
3
6
  The file appears to be being read but it is not, suspected with file truncation schemes.
@@ -41,7 +41,7 @@ module FileWatch module ReadMode module Handlers
41
41
  # don't emit this message too often. if a file that we can't
42
42
  # read is changing a lot, we'll try to open it more often, and spam the logs.
43
43
  now = Time.now.to_i
44
- logger.warn("opening OPEN_WARN_INTERVAL is '#{OPEN_WARN_INTERVAL}'")
44
+ logger.trace("opening OPEN_WARN_INTERVAL is '#{OPEN_WARN_INTERVAL}'")
45
45
  if watched_file.last_open_warning_at.nil? || now - watched_file.last_open_warning_at > OPEN_WARN_INTERVAL
46
46
  logger.warn("failed to open #{watched_file.path}: #{$!.inspect}, #{$!.backtrace.take(3)}")
47
47
  watched_file.last_open_warning_at = now
@@ -85,7 +85,7 @@ module FileWatch module TailMode module Handlers
85
85
  # don't emit this message too often. if a file that we can't
86
86
  # read is changing a lot, we'll try to open it more often, and spam the logs.
87
87
  now = Time.now.to_i
88
- logger.warn("open_file OPEN_WARN_INTERVAL is '#{OPEN_WARN_INTERVAL}'")
88
+ logger.trace("open_file OPEN_WARN_INTERVAL is '#{OPEN_WARN_INTERVAL}'")
89
89
  if watched_file.last_open_warning_at.nil? || now - watched_file.last_open_warning_at > OPEN_WARN_INTERVAL
90
90
  logger.warn("failed to open #{watched_file.path}: #{$!.inspect}, #{$!.backtrace.take(3)}")
91
91
  watched_file.last_open_warning_at = now
Binary file
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-file'
4
- s.version = '4.1.8'
4
+ s.version = '4.1.9'
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = "Streams events from files"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.8
4
+ version: 4.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement