]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
set api.extensions logging to ERROR in unit tests
authorSean Dague <sean.dague@samsung.com>
Mon, 7 Apr 2014 21:07:41 +0000 (17:07 -0400)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:54 +0000 (23:06 +0800)
commitb2c44c173c94c3a3f8afacd845fcd55a10f40ebf
treead573d67f036304ee637e831e72a5f885b196572
parenta53a404a97b1b67db46fb82b663cbfbf4a7ff835
set api.extensions logging to ERROR in unit tests

neutron.api.extensions generates a lot of output in a normal
unit test run. It's responsible for > 80% of the lines in the
subunit_log.txt. Logging each file load 10k times slows everything
down, takes up valuable memory, and doesn't really help with testing.

Instead we can set this to ERROR level in a fixture to ignore most
of that logging and help make the unit tests run faster.

Change-Id: I86b41f20342b4080859ee036220ddffa200f0562
(cherry picked from commit df96a03e6c74f1fceb4525900bca885307907b79)
neutron/tests/base.py