diff options
author | Chaozhe.Chen <chaozhe.chen@easystack.cn> | 2016-02-22 17:53:51 +0800 |
---|---|---|
committer | Chaozhe.Chen <chaozhe.chen@easystack.cn> | 2016-02-22 17:53:51 +0800 |
commit | 89e9c9098e0d8eabc2a3f9ee2a2787cd5a6e81e3 (patch) | |
tree | a811471078ed5395f4d8cb5124e429f4ec623932 /trove/common/base_wsgi.py | |
parent | 501199baa9162dd23a5d3553e5c8ba641ec76f28 (diff) | |
download | trove-89e9c9098e0d8eabc2a3f9ee2a2787cd5a6e81e3.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.
Change-Id: Ibeedb65ebfb0cd8bc0ffe24069b390931d8dfe4b
Closes-Bug: #1440773
Diffstat (limited to 'trove/common/base_wsgi.py')
-rw-r--r-- | trove/common/base_wsgi.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trove/common/base_wsgi.py b/trove/common/base_wsgi.py index 2bb70658..3b7a5103 100644 --- a/trove/common/base_wsgi.py +++ b/trove/common/base_wsgi.py @@ -29,7 +29,6 @@ import time import eventlet.wsgi from oslo_config import cfg from oslo_log import log as logging -from oslo_log import loggers from oslo_serialization import jsonutils from oslo_service import service from oslo_service import sslutils @@ -159,7 +158,7 @@ class Service(service.Service): eventlet.wsgi.server(socket, application, custom_pool=self.tg.pool, - log=loggers.WritableLogger(logger)) + log=logger) class Middleware(object): |