From c9bad6edf98083baa9b43cb82400dd91760c2240 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 7 Jul 2019 15:44:47 -0400 Subject: [PATCH] Log messages during startup --- client-api/pvc-api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index 991a612c..8f9c07cb 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -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()