judge venus config exist
Change-Id: I368bae284a3a5acf172930ed1769216730e210a6
This commit is contained in:
parent
a28d51c503
commit
81058281be
@ -28,9 +28,10 @@ def main():
|
||||
CONF(sys.argv[1:], project='venus',
|
||||
version=version.version_string())
|
||||
logdir = CONF.log_dir
|
||||
is_exists = os.path.exists(logdir)
|
||||
if not is_exists:
|
||||
os.makedirs(logdir)
|
||||
if logdir:
|
||||
is_exists = os.path.exists(logdir)
|
||||
if not is_exists:
|
||||
os.makedirs(logdir)
|
||||
logging.setup(CONF, "venus")
|
||||
|
||||
server = service.WSGIService('osapi_venus')
|
||||
|
Loading…
Reference in New Issue
Block a user