gettext.install('heat', unicode=1)
+import logging
from heat import rpc
from heat.common import config
from heat.common import wsgi
from paste import httpserver
+LOG = logging.getLogger('heat.api')
if __name__ == '__main__':
try:
conf()
config.FLAGS = conf
rpc.configure(conf)
+ config.setup_logging(conf)
app = config.load_paste_app(conf)
port = config.DEFAULT_PORT
- print 'Starting Heat API on port %s' % port
+ LOG.info(('Starting Heat API on port %s') % port)
httpserver.serve(app, port=port)
except RuntimeError, e:
sys.exit("ERROR: %s" % e)