Set sys.stdout for logging for examples and tests
Change-Id: Ib6f0375d5405da30c796c101443abfb62b97fdb8
This commit is contained in:
		| @@ -341,7 +341,7 @@ def option_parser(): | |||||||
|  |  | ||||||
| def setup(): | def setup(): | ||||||
|     opts = option_parser().parse_args() |     opts = option_parser().parse_args() | ||||||
|     utils.enable_logging(opts.debug) |     utils.enable_logging(opts.debug, stream=sys.stdout) | ||||||
|     return opts |     return opts | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -11,6 +11,7 @@ | |||||||
| # under the License. | # under the License. | ||||||
|  |  | ||||||
| import os | import os | ||||||
|  | import sys | ||||||
| import time | import time | ||||||
| import unittest | import unittest | ||||||
|  |  | ||||||
| @@ -62,7 +63,7 @@ class BaseFunctionalTest(unittest.TestCase): | |||||||
|         prof = profile.Profile() |         prof = profile.Profile() | ||||||
|         prof.set_region(prof.ALL, test_cloud.region) |         prof.set_region(prof.ALL, test_cloud.region) | ||||||
|         if test_cloud.debug: |         if test_cloud.debug: | ||||||
|             utils.enable_logging(True) |             utils.enable_logging(True, stream=sys.stdout) | ||||||
|  |  | ||||||
|         auth = test_cloud.config['auth'] |         auth = test_cloud.config['auth'] | ||||||
|         if 'insecure' in test_cloud.config: |         if 'insecure' in test_cloud.config: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TerryHowe
					TerryHowe