Add warning when running simple_server
This patch adds a warning log message that the Octavia API is being run under simple_server. Change-Id: Ida3acd6f3ba81facc929a4a2c3bd75c6971059c7 Story: 2007702 Task: 39818changes/37/730137/1
parent
b54f373cac
commit
4a0ecd0e87
|
@ -41,6 +41,10 @@ def main():
|
|||
'not set to "keystone". This is not a normal '
|
||||
'configuration and you may get "Missing project ID" '
|
||||
'errors from API calls."')
|
||||
LOG.warning('You are running the Octavia API wsgi application using '
|
||||
'simple_server. We do not recommend this outside of simple '
|
||||
'testing. We recommend you run the Octavia API wsgi with '
|
||||
'a more full function server such as gunicorn or uWSGI.')
|
||||
srv = simple_server.make_server(host, port, app)
|
||||
|
||||
srv.serve_forever()
|
||||
|
|
Loading…
Reference in New Issue