Log messages during startup

This commit is contained in:
Joshua Boniface 2019-07-07 15:44:47 -04:00
parent fed6dd6639
commit c9bad6edf9
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,8 @@ except:
print('Error: The "PVC_CONFIG_FILE" environment variable must be set before starting pvc-api.')
exit(1)
print('Starting PVC API daemon')
# Read in the config
try:
with open(pvc_config_file, 'r') as cfgfile:
@ -967,4 +969,5 @@ else:
# Run the ?WSGI server without SSL
http_server = gevent.pywsgi.WSGIServer((config['listen_address'], config['listen_port']), api)
print('Starting PyWSGI server')
http_server.serve_forever()