Merge "[eventlet-deprecation] Add a warning message after monkey_patched"
This commit is contained in:
@@ -18,9 +18,12 @@ import threading
|
|||||||
|
|
||||||
import eventlet
|
import eventlet
|
||||||
from eventlet.green import threading as threading_eventlet
|
from eventlet.green import threading as threading_eventlet
|
||||||
|
from oslo_log import log as logging
|
||||||
from oslo_utils import eventletutils
|
from oslo_utils import eventletutils
|
||||||
|
|
||||||
|
|
||||||
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
IS_MONKEY_PATCHED = False
|
IS_MONKEY_PATCHED = False
|
||||||
|
|
||||||
|
|
||||||
@@ -35,6 +38,8 @@ def monkey_patch():
|
|||||||
return
|
return
|
||||||
|
|
||||||
eventlet.monkey_patch()
|
eventlet.monkey_patch()
|
||||||
|
LOG.warning('This program is using eventlet and has been '
|
||||||
|
'monkey_patched')
|
||||||
|
|
||||||
# pylint: disable=import-outside-toplevel
|
# pylint: disable=import-outside-toplevel
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
|
Reference in New Issue
Block a user