summaryrefslogtreecommitdiffstats
path: root/dovetail/container.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-09-07 04:49:50 -0400
committerxudan <xudan16@huawei.com>2017-09-07 04:49:50 -0400
commit0c0e4109cdae9dde8346b92f694e272beb52fae7 (patch)
tree75181491bdfdd35a4b9ee5ccb23517c866f45046 /dovetail/container.py
parentf947b12c9f1cfac7f31dfd297581907c417ad8ff (diff)
Modify logs
JIRA: DOVETAIL-498 Change-Id: Ie98fc89cc840b557aa4186c6c2bee2d610432af0 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r--dovetail/container.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/dovetail/container.py b/dovetail/container.py
index cf8e14e5..14045165 100644
--- a/dovetail/container.py
+++ b/dovetail/container.py
@@ -164,7 +164,7 @@ class Container(object):
dt_utils.add_hosts_info(host)
hosts_config += " --add-host "
hosts_config += str(host)
- cls.logger.info('Get hosts info {}.'.format(hosts_config))
+ cls.logger.debug('Get hosts info {}.'.format(host))
except Exception:
cls.logger.warn('Failed to get hosts info in {}, '
'maybe some issues with domain name resolution.'
@@ -192,18 +192,18 @@ class Container(object):
cls.logger.info("https enabled...")
if cacert is not None:
if not os.path.isfile(cacert):
- cls.logger.error("Env variable 'OS_CACERT' is set to {}"
+ cls.logger.error("Env variable 'OS_CACERT' is set to {} "
"but the file does not exist."
.format(cacert))
return None
elif not dovetail_config['config_dir'] in cacert:
- cls.logger.error("Credential file has to be put in {},"
+ cls.logger.error("Credential file has to be put in {}, "
"which can be mount into container."
.format(dovetail_config['config_dir']))
return None
cacert_volume = ' -v %s:%s ' % (cacert, cacert)
else:
- cls.logger.warn("https enabled, OS_CACERT not set, insecure"
+ cls.logger.warn("https enabled, OS_CACERT not set, insecure "
"connection used or OS_CACERT missed")
result_volume = ' -v %s:%s ' % (dovetail_config['result_dir'],