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

Rack::Logger is deprecated and will be removed in Rack 3.2 #2018

Closed
Tracked by #2016 ...
dentarg opened this issue Jun 18, 2024 · 1 comment · Fixed by #2035
Closed
Tracked by #2016 ...

Rack::Logger is deprecated and will be removed in Rack 3.2 #2018

dentarg opened this issue Jun 18, 2024 · 1 comment · Fixed by #2035
Assignees

Comments

@dentarg
Copy link
Member

dentarg commented Jun 18, 2024

The warning causes the tests to fail, I guess it is a good thing, so we noticed in advance.

From https://github.com/sinatra/sinatra/actions/runs/9565078027/job/26367226933#step:5:25

  1) Failure:
IntegrationTest#test_with_puma_does_not_generate_warnings_0 [test/integration_test.rb:58]:
--- expected
+++ actual
@@ -1 +1 @@
-[]
+["lib/sinatra/base.rb:1849: warning: Rack::Logger is deprecated and will be removed in Rack 3.2."]


  2) Failure:
IntegrationTest#test_with_falcon_does_not_generate_warnings_0 [test/integration_test.rb:58]:
--- expected
+++ actual
@@ -1 +1 @@
-[]
+["lib/sinatra/base.rb:1849: warning: Rack::Logger is deprecated and will be removed in Rack 3.2."]


  3) Failure:
IntegrationTest#test_with_webrick_does_not_generate_warnings_0 [test/integration_test.rb:58]:
--- expected
+++ actual
@@ -1 +1 @@
-[]
+["lib/sinatra/base.rb:1849: warning: Rack::Logger is deprecated and will be removed in Rack 3.2."]
@dentarg dentarg mentioned this issue Jul 10, 2024
3 tasks
@dentarg dentarg self-assigned this Jul 10, 2024
dentarg added a commit to dentarg/sinatra that referenced this issue Jul 10, 2024
Add logger as dependency, to support future Ruby versions:
ruby/ruby@d7e558e

Close sinatra#2018
dentarg added a commit to dentarg/sinatra that referenced this issue Jul 11, 2024
Rack::Logger was removed in Rack 3.2.

Close sinatra#2018

Co-authored-by: Samuel Williams <[email protected]>
@dentarg dentarg mentioned this issue Jul 11, 2024
3 tasks
dentarg added a commit that referenced this issue Jul 11, 2024
Rack::Logger was removed in Rack 3.2.

Close #2018

Co-authored-by: Samuel Williams <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant