Disable debugging of API

This commit is contained in:
Joshua Boniface 2019-07-07 02:26:46 -04:00
parent a2362db11e
commit c3e86be6a3
1 changed files with 1 additions and 4 deletions

View File

@ -967,7 +967,4 @@ else:
# Run the ?WSGI server without SSL
http_server = gevent.pywsgi.WSGIServer((config['listen_address'], config['listen_port']), api)
if os.environ['PVC_DEBUG']:
api.run(host=config['listen_address'], port=config['listen_port'])
else:
http_server.serve_forever()