lib/frankenstein/server.rb in frankenstein-1.1.1 vs lib/frankenstein/server.rb in frankenstein-1.2.0
- old
+ new
@@ -76,10 +76,10 @@
return AlreadyRunningError if @server
@server_thread = Thread.new do
@op_mutex.synchronize do
begin
- wrapped_logger = Frankenstein::Server::WEBrickLogger.new(logger: @logger)
+ wrapped_logger = Frankenstein::Server::WEBrickLogger.new(logger: @logger, progname: "Frankenstein::Server")
@server = WEBrick::HTTPServer.new(Logger: wrapped_logger, BindAddress: nil, Port: @port, AccessLog: [[wrapped_logger, WEBrick::AccessLog::COMMON_LOG_FORMAT]])
@server.mount "/", Rack::Handler::WEBrick, app
rescue => ex
#:nocov:
@logger.fatal("Frankenstein::Server#run") { (["Exception while trying to create WEBrick::HTTPServer: #{ex.message} (#{ex.class})"] + ex.backtrace).join("\n ") }