Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not warn that directories are unreadable in the in_tail plugin. #1540

Merged
merged 3 commits into from
Apr 12, 2017

Conversation

iantalarico
Copy link
Contributor

Currently a warning will appear for each directory in globbed results. They will never be readable so the message appears on each refresh.

Currently a warning will appear for directories that are globbed.  They will never be reabable so the message appears on each refresh.
@@ -189,14 +189,17 @@ def expand_paths
path = date.strftime(path)
if path.include?('*')
paths += Dir.glob(path).select { |p|
if File.readable?(p) && !File.directory?(p)
is_directory = File.directory?(p)
Copy link
Member

@repeatedly repeatedly Apr 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_file = !File.directory?(p) is better for removing every ! from is_directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor Author

@iantalarico iantalarico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

@@ -189,14 +189,17 @@ def expand_paths
path = date.strftime(path)
if path.include?('*')
paths += Dir.glob(path).select { |p|
if File.readable?(p) && !File.directory?(p)
is_directory = File.directory?(p)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@repeatedly repeatedly merged commit e183496 into fluent:master Apr 12, 2017
@repeatedly
Copy link
Member

Thx!

repeatedly added a commit that referenced this pull request Apr 19, 2017
Do not warn that directories are unreadable in the in_tail plugin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants