code: def _init_wsgi_server(self):
          
          self.wsgi_server = None
  
          if self.httpd.active:
              # Only import dependencies when server is active
              from waitress.server import WSGIServer
              from pyrocore.daemon import webapp
  
              # Set up WSGI stack
              wsgi_app = webapp.make_app(self.httpd)
  #            try:
  #                import wsgilog
  #            except ImportError:
  #                self.LOG.info("'wsgilog' middleware not installed")
  #            else:
  #                wsgi_app = wsgilog.WsgiLog(wsgi_app, **self.httpd.wsgilog)
  
              ##logging.getLogger('waitress').setLevel(logging.DEBUG)
              self.LOG.debug("Waitress config: %r" % self.httpd.waitress)
              self.wsgi_server = WSGIServer(wsgi_app, **self.httpd.waitress)
              self.LOG.info("Started web server at %s://%s:%d/" % (
                  self.httpd.waitress.url_scheme,
                  self.wsgi_server.get_server_name(self.wsgi_server.effective_host),
                  int(self.wsgi_server.effective_port),
              ))
docs: Set up WSGI HTTP server.