From 23be11bc2e8fcb8e177694c61d95e65682a84238 Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Fri, 7 Apr 2017 21:13:30 +0200 Subject: [PATCH] cleanup logging --- src/emuvim/api/rest/rest_api_endpoint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/emuvim/api/rest/rest_api_endpoint.py b/src/emuvim/api/rest/rest_api_endpoint.py index fc48a33..4767be4 100755 --- a/src/emuvim/api/rest/rest_api_endpoint.py +++ b/src/emuvim/api/rest/rest_api_endpoint.py @@ -29,6 +29,7 @@ import logging import threading from flask import Flask from flask_restful import Api +#from gevent.wsgi import WSGIServer # need to import total module to set its global variable dcs import compute @@ -115,3 +116,6 @@ class RestApiEndpoint(object): def _start_flask(self): self.app.run(self.ip, self.port, debug=True, use_reloader=False) + #this should be a more production-fit http-server + #http_server = WSGIServer((self.ip, self.port), self.app) + #http_server.serve_forever() -- 2.25.1