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

enable force-decoding with decode_gzip => force #185

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yaauie
Copy link
Contributor

@yaauie yaauie commented Aug 2, 2019

Replaces #181

Enables users to force gzip decoding on files that are not named with gzip-style extensions. I explicitly avoided using a boolean-style variable as proposed in #181 because the default being false lead to false assumptions (e.g., is_gzipped=>false would not disable gzip decompression).

@gzip_detector = case @decode_gzip
when "force" then -> (_) { true }
when "detect" then -> (filename) { filename.end_with?('.gz','.gzip') }
else fail(LogStah::ConfigurationError, "unsupported value `#{@decode_gzip}` for decode_gzip")

Choose a reason for hiding this comment

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

Logstah::ConfigurationError is missing an 'S'. Otherwise, LGTM pending successful CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦‍♂

@apatnaik14
Copy link

Hello @yaauie! I was hoping to check if there is a release plan for this change to be merged into master? And if there is a tentative date for it?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants