Reviewed: https://review.openstack.org/59310 Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=4164de2bdb48eaacc58a70790aadb21b78cbf723 Submitter: Jenkins Branch: master
commit 4164de2bdb48eaacc58a70790aadb21b78cbf723 Author: Isaku Yamahata <email address hidden> Date: Tue Nov 26 16:01:29 2013 +0900
setup logger name of NeutronCommand automatically
It is a common pattern to add class XXXCommand(NeutronCommand): log = logging.getLogger(__name__ + '.<command name>'). So introduce a metaclass to do that automatically in order to simplify the code a bit.
Closes-Bug: #1258028 Change-Id: I7908e3e2c0f3f04d9e57360f6ba22e153d0d35bd
Reviewed: https:/ /review. openstack. org/59310 /git.openstack. org/cgit/ openstack/ python- neutronclient/ commit/ ?id=4164de2bdb4 8eaacc58a70790a adb21b78cbf723
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4164de2bdb48eaa cc58a70790aadb2 1b78cbf723
Author: Isaku Yamahata <email address hidden>
Date: Tue Nov 26 16:01:29 2013 +0900
setup logger name of NeutronCommand automatically
It is a common pattern to add NeutronCommand) : getLogger( __name_ _ + '.<command name>').
class XXXCommand(
log = logging.
So introduce a metaclass to do that automatically in order to simplify
the code a bit.
Closes-Bug: #1258028 4d9e57360f6ba22 e153d0d35bd
Change-Id: I7908e3e2c0f3f0