From 2b4f887c934fcd98c05a8a3b11af48263d77df90 Mon Sep 17 00:00:00 2001 From: caishan Date: Thu, 1 Feb 2018 19:02:54 -0800 Subject: [PATCH] Changing logging to oslo_log The oslo.log lib provides standardized log functions for all opentack projects. It is better to use the common logging module instead of logging Change-Id: I7faa95c58a83f76cc72f65edabd57034641a6377 --- zunclient/common/httpclient.py | 2 +- zunclient/common/websocketclient/websocketclient.py | 2 +- zunclient/osc/plugin.py | 2 +- zunclient/osc/v1/containers.py | 2 +- zunclient/osc/v1/hosts.py | 2 +- zunclient/osc/v1/images.py | 2 +- zunclient/osc/v1/services.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zunclient/common/httpclient.py b/zunclient/common/httpclient.py index 3a17078f..f4802ff8 100644 --- a/zunclient/common/httpclient.py +++ b/zunclient/common/httpclient.py @@ -16,8 +16,8 @@ import copy import json -import logging import os +from oslo_log import log as logging import socket import ssl diff --git a/zunclient/common/websocketclient/websocketclient.py b/zunclient/common/websocketclient/websocketclient.py index 98c8688d..58f24a70 100644 --- a/zunclient/common/websocketclient/websocketclient.py +++ b/zunclient/common/websocketclient/websocketclient.py @@ -18,8 +18,8 @@ import errno import fcntl -import logging import os +from oslo_log import log as logging import select import signal import six diff --git a/zunclient/osc/plugin.py b/zunclient/osc/plugin.py index 32dc5736..955f0696 100644 --- a/zunclient/osc/plugin.py +++ b/zunclient/osc/plugin.py @@ -11,7 +11,7 @@ # under the License. import argparse -import logging +from oslo_log import log as logging from osc_lib import utils diff --git a/zunclient/osc/v1/containers.py b/zunclient/osc/v1/containers.py index 4b7a061b..fe78d36b 100644 --- a/zunclient/osc/v1/containers.py +++ b/zunclient/osc/v1/containers.py @@ -13,8 +13,8 @@ import argparse from contextlib import closing import io -import logging import os +from oslo_log import log as logging import tarfile import time diff --git a/zunclient/osc/v1/hosts.py b/zunclient/osc/v1/hosts.py index 6a709636..ecb9cdf9 100644 --- a/zunclient/osc/v1/hosts.py +++ b/zunclient/osc/v1/hosts.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -import logging +from oslo_log import log as logging from osc_lib.command import command from osc_lib import utils diff --git a/zunclient/osc/v1/images.py b/zunclient/osc/v1/images.py index 4acd147e..2ca76b99 100644 --- a/zunclient/osc/v1/images.py +++ b/zunclient/osc/v1/images.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -import logging +from oslo_log import log as logging from osc_lib.command import command from osc_lib import utils diff --git a/zunclient/osc/v1/services.py b/zunclient/osc/v1/services.py index 274bf6e6..53cac4bb 100644 --- a/zunclient/osc/v1/services.py +++ b/zunclient/osc/v1/services.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -import logging +from oslo_log import log as logging from osc_lib.command import command from osc_lib import utils