summaryrefslogtreecommitdiffstats
path: root/tests/logger.py
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2017-07-17 08:54:22 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2017-08-01 11:13:58 +0800
commit9549a92ad62fbbad00e355b707809e6409b9e085 (patch)
tree9b7052325ca7fd067648ef9879d6cab46fa2f2c9 /tests/logger.py
parent162c3ae179f69bd326325b135c3831ae12843e49 (diff)
refactor local installer
JIRA: DOCTOR-100 Change-Id: I1e2c53f7a716156e35386d42c0df32a228a78fab Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/logger.py')
-rw-r--r--tests/logger.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/logger.py b/tests/logger.py
index 72043ab3..021389d9 100644
--- a/tests/logger.py
+++ b/tests/logger.py
@@ -21,6 +21,7 @@ class Logger(object):
CI_DEBUG = os.getenv('CI_DEBUG')
+ logging.basicConfig(filemode='w')
self.logger = logging.getLogger(logger_name)
self.logger.propagate = 0
self.logger.setLevel(logging.DEBUG)
@@ -41,7 +42,5 @@ class Logger(object):
file_handler.setLevel(logging.DEBUG)
self.logger.addHandler(file_handler)
-
def getLogger(self):
return self.logger
-