From f9879effdf172e4175145dba1b98c93426c2bebc Mon Sep 17 00:00:00 2001 From: TerryHowe Date: Thu, 25 Jun 2015 15:35:42 -0600 Subject: [PATCH] Set sys.stdout for logging for examples and tests Change-Id: Ib6f0375d5405da30c796c101443abfb62b97fdb8 --- examples/common.py | 2 +- openstack/tests/functional/base.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/common.py b/examples/common.py index 215c83ba..a4819269 100755 --- a/examples/common.py +++ b/examples/common.py @@ -341,7 +341,7 @@ def option_parser(): def setup(): opts = option_parser().parse_args() - utils.enable_logging(opts.debug) + utils.enable_logging(opts.debug, stream=sys.stdout) return opts diff --git a/openstack/tests/functional/base.py b/openstack/tests/functional/base.py index 03257ce9..a08f0b77 100644 --- a/openstack/tests/functional/base.py +++ b/openstack/tests/functional/base.py @@ -11,6 +11,7 @@ # under the License. import os +import sys import time import unittest @@ -62,7 +63,7 @@ class BaseFunctionalTest(unittest.TestCase): prof = profile.Profile() prof.set_region(prof.ALL, test_cloud.region) if test_cloud.debug: - utils.enable_logging(True) + utils.enable_logging(True, stream=sys.stdout) auth = test_cloud.config['auth'] if 'insecure' in test_cloud.config: