Fix bug in cli.py 07/1007/1
authorkubi <jean.gaoliang@huawei.com>
Tue, 14 Jul 2015 11:19:27 +0000 (11:19 +0000)
committerkubi <jean.gaoliang@huawei.com>
Tue, 14 Jul 2015 11:28:11 +0000 (11:28 +0000)
Make sure log level set correctly.

JIRA: YARDSTICK-57

Change-Id: Icc0e100432ce773f70ee0ac9b18471f89849d990
Signed-off-by: kubi <jean.gaoliang@huawei.com>
yardstick/cmd/cli.py

index 3f6c73c..ae7f3be 100644 (file)
@@ -123,7 +123,7 @@ class YardstickCLI():
         logger.setLevel(logging.WARNING)
 
         if args.verbose:
-            logger.getLogger('yardstick').setLevel(logging.INFO)
+            logger.setLevel(logging.INFO)
 
         if args.debug:
             logger.setLevel(logging.DEBUG)