]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Display message on heat-api and heat-engine startup
authorTomas Sedovic <tomas@sedovic.cz>
Wed, 21 Mar 2012 15:41:54 +0000 (16:41 +0100)
committerTomas Sedovic <tomas@sedovic.cz>
Wed, 21 Mar 2012 15:41:54 +0000 (16:41 +0100)
When a Heat server is started, the user will now see a message that says so and
shows the port number the server uses.

bin/heat-api
bin/heat-engine

index 77afe9d1f2392389a9371386535157545c2a738f..8917308c019481124e36d6100c88d7ba92afb25c 100755 (executable)
@@ -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)
index 1ec36aeb4cd81f41f21a60b968f87b539423dab6..d162bf27e0187de9496fb41c1be30889c8b5faa1 100755 (executable)
@@ -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)