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: 39818
Michael Johnson 2020-05-21 15:00:59 -07:00
parent b54f373cac
commit 4a0ecd0e87
1 changed files with 4 additions and 0 deletions

View File

@ -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)