From: Kevin Benton Date: Wed, 17 Sep 2014 08:36:03 +0000 (-0700) Subject: Stop exception log in Big Switch unit tests X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d675168a2ee8d968f7177ec31969e9db8d6bffab;p=openstack-build%2Fneutron-build.git Stop exception log in Big Switch unit tests Reduce unit test log sizes by removing stack trace exception logging in Big Switch unit tests. Closes-Bug: #1370898 Change-Id: Id808edb5db567db31b6c1366e20948683f20118a --- diff --git a/neutron/tests/unit/bigswitch/test_base.py b/neutron/tests/unit/bigswitch/test_base.py index 422c5b95d..c031d2659 100644 --- a/neutron/tests/unit/bigswitch/test_base.py +++ b/neutron/tests/unit/bigswitch/test_base.py @@ -60,6 +60,10 @@ class BigSwitchTestBase(object): self.spawn_p = mock.patch(SPAWN, new=lambda *args, **kwargs: None) # prevent the consistency watchdog from starting self.watch_p = mock.patch(CWATCH, new=lambda *args, **kwargs: None) + # disable exception log to prevent json parse error from showing + self.log_exc_p = mock.patch(SERVER_MANAGER + ".LOG.exception", + new=lambda *args, **kwargs: None) + self.log_exc_p.start() self.plugin_notifier_p.start() self.spawn_p.start() self.watch_p.start()