Browse Source

Don't set use_stderr to False for tests

Since the option is False by default in the oslo.log library, this is
effectively a no-op. Also it may confuse readers that try to understand
how logging is set up for tests.

TrivialFix

Change-Id: I091566519912251547c703139b38daea2979a93d
changes/29/456329/3
Ihar Hrachyshka 4 years ago
committed by Kevin Benton
parent
commit
cf9779eda3
  1. 1
      neutron/tests/base.py
  2. 5
      neutron/tests/unit/__init__.py

1
neutron/tests/base.py

@ -82,7 +82,6 @@ def setup_test_logging(config_opts, log_dir, log_file_path_template):
log_file = sanitize_log_path(
os.path.join(log_dir, log_file_path_template))
config_opts.set_override('log_file', log_file)
config_opts.set_override('use_stderr', False)
config.setup_logging()

5
neutron/tests/unit/__init__.py

@ -13,12 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from neutron.common import eventlet_utils
cfg.CONF.use_stderr = False
eventlet_utils.monkey_patch()
Loading…
Cancel
Save