Skip to content

Commit

Permalink
logstash-plugins#110 log skipped folders
Browse files Browse the repository at this point in the history
  • Loading branch information
original-brownbear committed May 9, 2017
1 parent de2b5b6 commit b07ad6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/logstash/filters/grok.rb
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ def patterns_files_from_paths(paths, glob)

Dir.glob(path).each do |file|
@logger.trace("Grok loading patterns from file", :path => file)
patternfiles << file unless File.directory?(file)
if File.directory?(file)
logger.debug("Skipping path because it is a directory", :path => file)
else
patternfiles << file
end
end
end
patternfiles
Expand Down

0 comments on commit b07ad6f

Please sign in to comment.