From d36b4de2ce137d3833f4516778e88463d040b94e Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Tue, 10 Feb 2015 14:49:07 -0500 Subject: [PATCH] Use standard logging in oslo.policy Oslo libraries should not depend on oslo.log, we should use standard logging, as noted in the graduation guidelines. partially implements bp graduate-policy Change-Id: I9d3973ad4b5b32922fa56881b679ad9e403289ea --- oslo_policy/_parser.py | 3 ++- oslo_policy/policy.py | 2 +- requirements.txt | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oslo_policy/_parser.py b/oslo_policy/_parser.py index 9b296be8..41cb7012 100644 --- a/oslo_policy/_parser.py +++ b/oslo_policy/_parser.py @@ -14,9 +14,10 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + +import logging import re -from oslo_log import log as logging import six from oslo_policy import _checks diff --git a/oslo_policy/policy.py b/oslo_policy/policy.py index 2e824c45..812a9814 100644 --- a/oslo_policy/policy.py +++ b/oslo_policy/policy.py @@ -202,10 +202,10 @@ by setting the ``policy_default_rule`` configuration setting to the desired rule name. """ +import logging import os from oslo_config import cfg -from oslo_log import log as logging from oslo_serialization import jsonutils import six diff --git a/requirements.txt b/requirements.txt index 1782a99f..44023878 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,4 @@ oslo.config>=1.6.0 # Apache-2.0 oslo.i18n>=1.3.0 # Apache-2.0 -oslo.log>=0.1.0 # Apache-2.0 oslo.serialization>=1.2.0 # Apache-2.0