correct getLoggers to use __name__ in code

Previousy the NSX plugin would log as NeutronPlugin. Now it contains
the whole class path like the rest of the log statements.

Change-Id: Ib27a2016a37c808c404489d11b56cc513c003ca1
Closes-bug: 1357214
This commit is contained in:
Aaron Rosen 2014-08-14 23:52:52 -07:00
parent 6f20bfdbdf
commit 94d7fad7f8
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ from neutron.plugins.vmware.nsxlib import router as routerlib
from neutron.plugins.vmware.nsxlib import secgroup as secgrouplib from neutron.plugins.vmware.nsxlib import secgroup as secgrouplib
from neutron.plugins.vmware.nsxlib import switch as switchlib from neutron.plugins.vmware.nsxlib import switch as switchlib
LOG = logging.getLogger("NeutronPlugin") LOG = logging.getLogger(__name__)
NSX_NOSNAT_RULES_ORDER = 10 NSX_NOSNAT_RULES_ORDER = 10
NSX_FLOATINGIP_NAT_RULES_ORDER = 224 NSX_FLOATINGIP_NAT_RULES_ORDER = 224

View File

@ -28,7 +28,7 @@ from neutron.tests import base
from neutron.tests.unit import vmware from neutron.tests.unit import vmware
LOG = logging.getLogger("test_api_request_eventlet") LOG = logging.getLogger(__name__)
REQUEST_TIMEOUT = 1 REQUEST_TIMEOUT = 1