Disable logging
This commit is contained in:
parent
5fb5be3375
commit
43565636e6
2 changed files with 17 additions and 0 deletions
|
@ -1,9 +1,23 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
####################
|
||||
# Standard library #
|
||||
####################
|
||||
|
||||
require 'logger'
|
||||
|
||||
########
|
||||
# Gems #
|
||||
########
|
||||
|
||||
require 'rack'
|
||||
require 'sinatra/base'
|
||||
require 'webrick'
|
||||
|
||||
################
|
||||
# Own requires #
|
||||
################
|
||||
|
||||
require_relative 'diversipub/main'
|
||||
require_relative 'diversipub/rack_app'
|
||||
require_relative 'diversipub/sinatra_app'
|
||||
|
|
|
@ -65,7 +65,10 @@ module Diversipub
|
|||
|
||||
def webrick_options
|
||||
@webrick_options ||= {
|
||||
AccessLog: [],
|
||||
BindAddress: 'localhost',
|
||||
DocumentRoot: nil,
|
||||
Logger: Logger.new(File.open('/dev/null', 'w')),
|
||||
Port: 8080,
|
||||
}.freeze
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue