summaryrefslogtreecommitdiff
path: root/neutron/wsgi.py
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihrachys@redhat.com>2015-10-08 15:48:12 +0200
committerIhar Hrachyshka <ihrachys@redhat.com>2015-10-08 15:56:04 +0200
commitba2cb93b2975ec8151c95944ce4961fd7d28e326 (patch)
treeaf8dfe99df28f6eb86957c2bd5cbd062b106f339 /neutron/wsgi.py
parent8f58bbf38f5984e70d6e0be7427deb99d7782d1d (diff)
downloadneutron-ba2cb93b2975ec8151c95944ce4961fd7d28e326.tar.gz
Remove usage of WritableLogger from oslo_log
With Eventlet 0.17.2, we can directly pass the logger instance. This allows us to deprecate/remove the WritableLogger class from oslo.log. Closes-Bug: #1440773 Change-Id: I3985b30b499a1e676d39c2a6cd3a31ac13c0ab47
Diffstat (limited to 'neutron/wsgi.py')
-rw-r--r--neutron/wsgi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/neutron/wsgi.py b/neutron/wsgi.py
index dacbadf8ea..89d7b8340d 100644
--- a/neutron/wsgi.py
+++ b/neutron/wsgi.py
@@ -29,7 +29,6 @@ import eventlet.wsgi
from oslo_config import cfg
import oslo_i18n
from oslo_log import log as logging
-from oslo_log import loggers
from oslo_serialization import jsonutils
from oslo_service import service as common_service
from oslo_service import systemd
@@ -288,7 +287,7 @@ class Server(object):
"""Start a WSGI server in a new green thread."""
eventlet.wsgi.server(socket, application,
max_size=self.num_threads,
- log=loggers.WritableLogger(LOG),
+ log=LOG,
keepalive=CONF.wsgi_keep_alive,
socket_timeout=self.client_socket_timeout)