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
remove setting quiet requests inside puma rack handler #2075
remove setting quiet requests inside puma rack handler #2075
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this was added in 03ed48c to fix #852. Will we reintroduce that issue if we change the default here?
We might also need to update the cli text
Line 168 in befe00a
o.on "-q", "--quiet", "Do not log requests internally (default true)" do |
My initial thought is that we probably don't want to change the default, and should perhaps explore other ways to fix the bug you described in #2074. Also, if there is a bug here it would be nice to get a failing test case that catches it.
Many thanks!
In 03ed48c] the default configuration was updated, which I agree with, however forcing to quiet requests in the rack handler seems unnecessary to me (as this has been defaulted already) I have added a couple of test cases to ensure that both the user and file defaults are working as expected. Note that the file configuration does not currently work in master branch |
95d731d
to
8b9429e
Compare
8b9429e
to
eef2e25
Compare
test/test_rack_handler.rb
Outdated
@@ -226,4 +226,39 @@ def test_user_port_wins_over_config | |||
end | |||
end | |||
end | |||
|
|||
def test_file_log_requests_wins_over_deafult_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo default
test/test_rack_handler.rb
Outdated
file_log_requests_config = true | ||
|
||
Dir.mktmpdir do |d| | ||
Dir.chdir(d) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather just have a new, pre-baked config file on the filesystem, rather than create it dynamically. That way we can run the test in parallel.
So just to confirm, this PR does not cause double logging with Sinatra? |
Tested in Rails using provided repro and it LGTM |
Description
Remove setting quiet in user settings by default
Closes
#2074
Your checklist for this pull request
[changelog skip]
to all commit messages.[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.