novncproxy: Setup log when start nova-novncproxy
Because log system not setup, so log_dir, log_file config item not work. Change-Id: Iabe7a4ca41dc0de8c752f013f6afeed5fd80b4ea Closes-Bug: #1291949
This commit is contained in:
@@ -27,6 +27,7 @@ from oslo.config import cfg
|
|||||||
|
|
||||||
from nova import config
|
from nova import config
|
||||||
from nova.console import websocketproxy
|
from nova.console import websocketproxy
|
||||||
|
from nova.openstack.common import log as logging
|
||||||
from nova.openstack.common.report import guru_meditation_report as gmr
|
from nova.openstack.common.report import guru_meditation_report as gmr
|
||||||
from nova import version
|
from nova import version
|
||||||
|
|
||||||
@@ -55,6 +56,7 @@ def main():
|
|||||||
# Setup flags
|
# Setup flags
|
||||||
CONF.set_default('web', '/usr/share/novnc')
|
CONF.set_default('web', '/usr/share/novnc')
|
||||||
config.parse_args(sys.argv)
|
config.parse_args(sys.argv)
|
||||||
|
logging.setup("nova")
|
||||||
|
|
||||||
if CONF.ssl_only and not os.path.exists(CONF.cert):
|
if CONF.ssl_only and not os.path.exists(CONF.cert):
|
||||||
print("SSL only and %s not found" % CONF.cert)
|
print("SSL only and %s not found" % CONF.cert)
|
||||||
|
|||||||
Reference in New Issue
Block a user