Commit 710f7518 authored by Robert Speicher's avatar Robert Speicher

Disable WEBrick logging in HTTPUNIXServer to reduce spec output noise

parent 0a0ee0ab
......@@ -2,6 +2,12 @@ require 'webrick'
# like WEBrick::HTTPServer, but listens on UNIX socket
class HTTPUNIXServer < WEBrick::HTTPServer
def initialize(config = {})
null_log = WEBrick::Log.new(IO::NULL, 7)
super(config.merge(Logger: null_log, AccessLog: null_log))
end
def listen(address, port)
socket = Socket.unix_server_socket(address)
socket.autoclose = false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment