reidmorrison / rails_semantic_logger

Rails Semantic Logger replaces the Rails default logger with Semantic Logger
https://logger.rocketjob.io/rails
Apache License 2.0
320 stars 114 forks source link

Deprecation warning with Rack 3 #198

Closed nickstanish closed 9 months ago

nickstanish commented 10 months ago

Environment

Provide at least:

Note:

Expected Behavior

Deprecation warning is resolved

Actual Behavior

Running rails server outputs a deprecation warning traced back to this line: https://github.com/reidmorrison/rails_semantic_logger/blob/f3aea8c8434a265a0a02c7a855552b14c6f39123/lib/rails_semantic_logger.rb#L61

Rack::Server is deprecated and replaced by Rackup::Server
=> Booting Puma
=> Rails 7.1.1 application starting in development
=> Run `bin/rails server --help` for more startup options

Rack 3 moved Rack::Server to Rackup::Server https://github.com/rack/rackup/blob/eaea24a3d64a1b117df943a9d06779e659bb61af/lib/rack/server.rb#L6-L10

Pull Request

reidmorrison commented 10 months ago

A pull request would be most welcome.