Display message on heat-api and heat-engine startup

When a Heat server is started, the user will now see a message that says so and
shows the port number the server uses.
This commit is contained in:
Tomas Sedovic 2012-03-21 16:41:54 +01:00
parent 5d8d645f4e
commit 53859a38ca
2 changed files with 6 additions and 2 deletions

View File

@ -47,8 +47,10 @@ if __name__ == '__main__':
app = config.load_paste_app(conf)
port = config.DEFAULT_PORT
print 'Starting Heat API on port %s' % port
server = wsgi.Server()
server.start(app, conf, default_port=config.DEFAULT_PORT)
server.start(app, conf, default_port=port)
server.wait()
except RuntimeError, e:
sys.exit("ERROR: %s" % e)

View File

@ -43,8 +43,10 @@ if __name__ == '__main__':
app = config.load_paste_app(conf)
port = config.DEFAULT_PORT+1
print 'Starting Heat Engine on port %s' % port
server = wsgi.Server()
server.start(app, conf, default_port=config.DEFAULT_PORT+1)
server.start(app, conf, default_port=port)
server.wait()
except RuntimeError, e:
sys.exit("ERROR: %s" % e)