aboutsummaryrefslogtreecommitdiffstats
path: root/functest/cli/cli_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/cli/cli_base.py')
-rw-r--r--functest/cli/cli_base.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/cli/cli_base.py b/functest/cli/cli_base.py
index cc697ed7..2104e125 100644
--- a/functest/cli/cli_base.py
+++ b/functest/cli/cli_base.py
@@ -8,11 +8,14 @@
#
import click
+import logging.config
from functest.cli.commands.cli_env import CliEnv
from functest.cli.commands.cli_os import CliOpenStack
from functest.cli.commands.cli_testcase import CliTestcase
from functest.cli.commands.cli_tier import CliTier
+from functest.utils.constants import CONST
+
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@@ -20,7 +23,8 @@ CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@click.group(context_settings=CONTEXT_SETTINGS)
@click.version_option(version='opnfv colorado.0.1 ')
def cli():
- pass
+ logging.config.fileConfig(
+ CONST.__getattribute__('dir_functest_logging_cfg'))
_env = CliEnv()