logstash-input-file 4.1.5 → 4.1.6

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: 91fd970a376e7386f8b2b5ead8a5f2f62e2f1cebce0783aedd44b30913dcc4d5
4
- data.tar.gz: 7f291854ae2eb7417d15de37d92abf2abe5524e7bd4021c2d241c0d39d177545
3
+ metadata.gz: 52327c9fa0774f1a563698c9db6e9e1b5f6b0abebd7b80674ae4616c800a45b4
4
+ data.tar.gz: cbf40e29bb2fb480cfd96edab5a2b287a0ad6c3ea18e13a0ada2a6850ed30a25
5
5
  SHA512:
6
- metadata.gz: b1c945d44197cdab2609f351e395aaa40c45f872b912f754ce7f4485d8b00d313e693752feede403f93bf5e1c551fb90c61258821d73a72b16dbc7cbc233747a
7
- data.tar.gz: 6d84ca4b777a648a0f7d51ec976a544fb28dc9c2370ebfd56cdfd259820d778807865751dc7e14b788f72c0c7a1fc2bdcf742e07c45fcac4c0dc0f84cef9160f
6
+ metadata.gz: fe35ff00a3b0063c183932d148d4eb9fe46f3e51b1db620cbdaa2db9cc479d6639830469576afde037282662cbda2ecc8c5a96f6c0bf880f4f963f191c54f9f9
7
+ data.tar.gz: 227fe2d426d7493611946f17b299c2602f9f26da08b90b04f3e75402e61d088e2edaf123bd3fd4d9dc9f8a2fbc3840b432bb9f8e1629a78ce8f8db9d71664a58
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.1.6
2
+ - Fixed Errno::ENOENT exception in Discoverer. [Issue #204](https://github.com/logstash-plugins/logstash-input-file/issues/204)
3
+
1
4
  ## 4.1.5
2
5
  - Fixed text anchor by changing it from hardcoded to asciidoc reference to
3
6
  work in versioned plugin reference
@@ -63,8 +63,13 @@ module FileWatch
63
63
  new_discovery = false
64
64
  watched_file = @watched_files_collection.watched_file_by_path(file)
65
65
  if watched_file.nil?
66
+ begin
67
+ path_stat = PathStatClass.new(pathname)
68
+ rescue Errno::ENOENT
69
+ next
70
+ end
71
+ watched_file = WatchedFile.new(pathname, path_stat, @settings)
66
72
  new_discovery = true
67
- watched_file = WatchedFile.new(pathname, PathStatClass.new(pathname), @settings)
68
73
  end
69
74
  # if it already unwatched or its excluded then we can skip
70
75
  next if watched_file.unwatched? || can_exclude?(watched_file, new_discovery)
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.5'
4
+ s.version = '4.1.6'
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.5
4
+ version: 4.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-19 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement