From 91d4eee90fcbfc6bb65c327767a6d000dd94602e Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Mon, 20 Jul 2020 15:46:13 +0000 Subject: [PATCH] Do not import "oslo.log" in the main module The LOG instance is not being used and there is no need to import "oslo_log". This will also prevent the circular import detected in the related bug. Change-Id: Id560ba80472b9efbcfbc289a18d4df312961fdb1 Related-Bug: #1888213 --- oslo_service/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/oslo_service/__init__.py b/oslo_service/__init__.py index 17ab9d3c..0c3807e0 100644 --- a/oslo_service/__init__.py +++ b/oslo_service/__init__.py @@ -13,14 +13,11 @@ import os import eventlet.patcher -from oslo_log import log as logging + time = eventlet.patcher.original('time') -LOG = logging.getLogger(__name__) - - def service_hub(): # NOTE(dims): Add a custom impl for EVENTLET_HUB, so we can # override the clock used in the eventlet hubs. The default