aboutsummaryrefslogtreecommitdiff
path: root/kolla/common
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/common')
-rwxr-xr-xkolla/common/config.py4
-rw-r--r--kolla/common/utils.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index f713c29c8..7ce8d26e1 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -256,7 +256,9 @@ _CLI_OPTS = [
cfg.StrOpt('openstack-branch', default='master',
help='Branch for source images'),
cfg.BoolOpt('docker-healthchecks', default=True,
- help='Add Kolla docker healthcheck scripts in the image')
+ help='Add Kolla docker healthcheck scripts in the image'),
+ cfg.BoolOpt('quiet', short='q', default=False,
+ help='Do not print image logs')
]
_BASE_OPTS = [
diff --git a/kolla/common/utils.py b/kolla/common/utils.py
index 8913b132e..9cd8ecca9 100644
--- a/kolla/common/utils.py
+++ b/kolla/common/utils.py
@@ -32,6 +32,8 @@ def make_a_logger(conf=None, image_name=None):
log.addHandler(handler)
if conf is not None and conf.debug:
log.setLevel(logging.DEBUG)
+ elif conf is not None and conf.quiet and image_name:
+ log.setLevel(logging.CRITICAL)
else:
log.setLevel(logging.INFO)
return log