From: stevenvanrossem Date: Fri, 7 Apr 2017 19:13:30 +0000 (+0200) Subject: cleanup logging X-Git-Tag: v3.1~33^2~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=23be11bc2e8fcb8e177694c61d95e65682a84238;p=osm%2Fvim-emu.git cleanup logging --- 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()