diff --git a/requirements.txt b/requirements.txt index 36f432b..99d9b5a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,6 +7,7 @@ pbr>=1.8 # Apache-2.0 Django<1.9,>=1.8 # BSD django-compressor>=2.0 # MIT django-openstack-auth>=2.4.0 # Apache-2.0 +oslo.log>=3.11.0 # Apache-2.0 iso8601>=0.1.11 # MIT python-designateclient>=1.5.0 # Apache-2.0 python-keystoneclient>=3.8.0 # Apache-2.0 diff --git a/sahara_dashboard/api/manila.py b/sahara_dashboard/api/manila.py index e679b06..5094152 100644 --- a/sahara_dashboard/api/manila.py +++ b/sahara_dashboard/api/manila.py @@ -19,10 +19,10 @@ # under the License. from __future__ import absolute_import -import logging from django.conf import settings from manilaclient.v1 import client as manila_client +from oslo_log import log as logging from horizon import exceptions from horizon.utils.memoized import memoized # noqa diff --git a/sahara_dashboard/content/data_processing/clusters/cluster_templates/tabs.py b/sahara_dashboard/content/data_processing/clusters/cluster_templates/tabs.py index 8986986..abeb4ae 100644 --- a/sahara_dashboard/content/data_processing/clusters/cluster_templates/tabs.py +++ b/sahara_dashboard/content/data_processing/clusters/cluster_templates/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ diff --git a/sahara_dashboard/content/data_processing/clusters/clusters/tabs.py b/sahara_dashboard/content/data_processing/clusters/clusters/tabs.py index 22a6a67..476a429 100644 --- a/sahara_dashboard/content/data_processing/clusters/clusters/tabs.py +++ b/sahara_dashboard/content/data_processing/clusters/clusters/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ from sahara_dashboard.api import sahara as saharaclient diff --git a/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/tabs.py b/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/tabs.py index 2ab6871..8610533 100644 --- a/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/tabs.py +++ b/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ diff --git a/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py b/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py index 769fbe6..1514867 100644 --- a/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py +++ b/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py @@ -12,13 +12,13 @@ # limitations under the License. import itertools -import logging import uuid from django.utils import encoding from django.utils import html from django.utils import safestring from django.utils.translation import ugettext_lazy as _ +from oslo_log import log as logging from saharaclient.api import base as api_base from horizon import exceptions diff --git a/sahara_dashboard/content/data_processing/data_plugins/tabs.py b/sahara_dashboard/content/data_processing/data_plugins/tabs.py index 058d677..a6cbb4c 100644 --- a/sahara_dashboard/content/data_processing/data_plugins/tabs.py +++ b/sahara_dashboard/content/data_processing/data_plugins/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ import six diff --git a/sahara_dashboard/content/data_processing/jobs/data_sources/tabs.py b/sahara_dashboard/content/data_processing/jobs/data_sources/tabs.py index 56df2a6..0973b93 100644 --- a/sahara_dashboard/content/data_processing/jobs/data_sources/tabs.py +++ b/sahara_dashboard/content/data_processing/jobs/data_sources/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ diff --git a/sahara_dashboard/content/data_processing/jobs/job_binaries/tabs.py b/sahara_dashboard/content/data_processing/jobs/job_binaries/tabs.py index bfcf16d..b016b48 100644 --- a/sahara_dashboard/content/data_processing/jobs/job_binaries/tabs.py +++ b/sahara_dashboard/content/data_processing/jobs/job_binaries/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ diff --git a/sahara_dashboard/content/data_processing/jobs/job_templates/tabs.py b/sahara_dashboard/content/data_processing/jobs/job_templates/tabs.py index f7a8340..d5acf7c 100644 --- a/sahara_dashboard/content/data_processing/jobs/job_templates/tabs.py +++ b/sahara_dashboard/content/data_processing/jobs/job_templates/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ diff --git a/sahara_dashboard/content/data_processing/jobs/jobs/tabs.py b/sahara_dashboard/content/data_processing/jobs/jobs/tabs.py index 85c1eeb..2658054 100644 --- a/sahara_dashboard/content/data_processing/jobs/jobs/tabs.py +++ b/sahara_dashboard/content/data_processing/jobs/jobs/tabs.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.utils.translation import ugettext_lazy as _ diff --git a/sahara_dashboard/content/data_processing/utils/workflow_helpers.py b/sahara_dashboard/content/data_processing/utils/workflow_helpers.py index 2b16d82..2e63c60 100644 --- a/sahara_dashboard/content/data_processing/utils/workflow_helpers.py +++ b/sahara_dashboard/content/data_processing/utils/workflow_helpers.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging +from oslo_log import log as logging from django.core.exceptions import ValidationError from django.utils import safestring