79291599

Date: 2024-12-18 15:22:21
Score: 1
Natty:
Report link

On WEBrick 1.9.1 you can silence the log by passing in an empty AccessLog array.

def server
  opts = {
    AccessLog: []
  }

  Rack::Handler::WEBrick.run(
    Rack::Builder.new do
      # Turns on gzip compression.
      use Rack::Deflater
    end,
    **opts
  )

end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: arlando