Remove the log.isEnabledFor check as neutron log is not support yet

Remove the log.isEnabledFor in message.py as neutron does not sync the
oslo-incubate as nova's level, there is no isEnabledFor at this time in
neutron openstack.common.log.

Closes-Bug: #1373416
Change-Id: I1abda8017f55785e807d20dfa4d574c0a7016f60
This commit is contained in:
Terry Yao 2014-09-24 21:26:45 +08:00
parent ab21eb0a57
commit d82a609c65
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class NotificationEndpoint(object):
handlers = self._get_handlers(event_type)
try:
if handlers:
if self._log and self._log.isEnabledFor('INFO'):
if self._log:
self._log.info("'%s' level '%s' type message is received. "
"Routing to handlers..."
% (self.MSG_LEVEL[level], event_type)
@ -92,7 +92,7 @@ class NotificationEndpoint(object):
payload=payload,
)
end_time = time.time()
if self._log and self._log.isEnabledFor('DEBUG'):
if self._log:
self._log.debug("handler '%s' uses '%f' time(s)"
% (handler, end_time - start_time)
)