]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Log exceptions inside spawned functions
authorZang MingJie <zealot0630@gmail.com>
Wed, 16 Jul 2014 07:41:45 +0000 (15:41 +0800)
committerZang MingJie <zealot0630@gmail.com>
Thu, 24 Jul 2014 13:21:02 +0000 (21:21 +0800)
commit7d869a02b8245dbf9d22ddf73ff810d055581730
treef1cb8ca76b0d37557ba3b24388dd01d9554e5aa6
parent75735e9cf168d0a182e2a98ed6a39c274b090b36
Log exceptions inside spawned functions

eventlet pool will discards all exception raised inside spawn(_n), it is
hard to discover problems inside spawned green-threads, it is better to
add a function wrapper to log the exceptions raised inside spawned
function.

Change-Id: I753df36c4614759f49134667a55f2a91f0c08317
Closes-bug: #1340708
neutron/agent/dhcp_agent.py
neutron/agent/l3_agent.py
neutron/common/utils.py
neutron/tests/unit/test_common_utils.py