summaryrefslogtreecommitdiffstats
path: root/utils/test/scripts/create_kibana_dashboards.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-12 09:48:53 +0800
committerSerena Feng <feng.xiaowei@zte.com.cn>2016-09-13 00:58:31 +0000
commita760ce30fa2f2550a83fcb84fe225f60eda8a357 (patch)
treefdc5a41969e44f5be2d47756e4dfd51c64b97a04 /utils/test/scripts/create_kibana_dashboards.py
parentebeaa913386df4c9ebb0110ffdcd298540b1b4d5 (diff)
add logger common process for releng scripts
JIRA: FUNCTEST-468 Change-Id: I03fb25ef26db521bceb740ec2808106a00e55165 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/scripts/create_kibana_dashboards.py')
-rw-r--r--utils/test/scripts/create_kibana_dashboards.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/test/scripts/create_kibana_dashboards.py b/utils/test/scripts/create_kibana_dashboards.py
index 5897a7e79..59666c1c8 100644
--- a/utils/test/scripts/create_kibana_dashboards.py
+++ b/utils/test/scripts/create_kibana_dashboards.py
@@ -1,18 +1,14 @@
#! /usr/bin/env python
import json
-import logging
import urlparse
import argparse
import conf_utils
+import logger_utils
import shared_utils
-logger = logging.getLogger('create_kibana_dashboards')
-logger.setLevel(logging.DEBUG)
-file_handler = logging.FileHandler('./{}.log'.format('create_kibana_dashboards'))
-file_handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s: %(message)s'))
-logger.addHandler(file_handler)
+logger = logger_utils.KibanaDashboardLogger('elastic2kibana').get
_installers = {'fuel', 'apex', 'compass', 'joid'}