diff --git a/freezer/apiclient/actions.py b/freezer/apiclient/actions.py index c8b56378..05aed5ab 100644 --- a/freezer/apiclient/actions.py +++ b/freezer/apiclient/actions.py @@ -18,12 +18,8 @@ limitations under the License. import json import requests -from oslo_log import log - from freezer.apiclient import exceptions -LOG = log.getLogger(__name__) - class ActionManager(object): diff --git a/freezer/apiclient/backups.py b/freezer/apiclient/backups.py index 9ea37616..898d945d 100644 --- a/freezer/apiclient/backups.py +++ b/freezer/apiclient/backups.py @@ -17,12 +17,8 @@ limitations under the License. import json import requests -from oslo_log import log - from freezer.apiclient import exceptions -LOG = log.getLogger(__name__) - class BackupsManager(object): diff --git a/freezer/apiclient/client.py b/freezer/apiclient/client.py index 014288dd..81e16dcb 100644 --- a/freezer/apiclient/client.py +++ b/freezer/apiclient/client.py @@ -23,7 +23,6 @@ from keystoneauth1.identity import v2 from keystoneauth1.identity import v3 from keystoneauth1 import session as ksa_session from oslo_config import cfg -from oslo_log import log from freezer.apiclient import actions from freezer.apiclient import backups @@ -32,8 +31,6 @@ from freezer.apiclient import registration from freezer.apiclient import sessions from freezer.utils import utils -LOG = log.getLogger(__name__) - FREEZER_SERVICE_TYPE = 'backup' diff --git a/freezer/apiclient/exceptions.py b/freezer/apiclient/exceptions.py index 55aef047..44bb2a27 100644 --- a/freezer/apiclient/exceptions.py +++ b/freezer/apiclient/exceptions.py @@ -16,9 +16,6 @@ limitations under the License. """ import json -from oslo_log import log - -LOG = log.getLogger(__name__) class ApiClientException(Exception): diff --git a/freezer/apiclient/jobs.py b/freezer/apiclient/jobs.py index 0c1bd7e2..635f53f7 100644 --- a/freezer/apiclient/jobs.py +++ b/freezer/apiclient/jobs.py @@ -17,12 +17,8 @@ limitations under the License. import json import requests -from oslo_log import log - from freezer.apiclient import exceptions -LOG = log.getLogger(__name__) - class JobManager(object): diff --git a/freezer/apiclient/registration.py b/freezer/apiclient/registration.py index 99da75b9..fb28a462 100644 --- a/freezer/apiclient/registration.py +++ b/freezer/apiclient/registration.py @@ -17,12 +17,8 @@ limitations under the License. import json import requests -from oslo_log import log - from freezer.apiclient import exceptions -LOG = log.getLogger(__name__) - class RegistrationManager(object): diff --git a/freezer/apiclient/sessions.py b/freezer/apiclient/sessions.py index 8db64a16..b83c6251 100644 --- a/freezer/apiclient/sessions.py +++ b/freezer/apiclient/sessions.py @@ -17,12 +17,8 @@ limitations under the License. import json import requests -from oslo_log import log - from freezer.apiclient import exceptions -LOG = log.getLogger(__name__) - class SessionManager(object): diff --git a/freezer/engine/tar/tar_builders.py b/freezer/engine/tar/tar_builders.py index 6c3bad14..89d84201 100644 --- a/freezer/engine/tar/tar_builders.py +++ b/freezer/engine/tar/tar_builders.py @@ -17,10 +17,6 @@ Freezer Tar related functions """ from freezer.utils import utils -from oslo_log import log - -LOG = log.getLogger(__name__) - class TarCommandBuilder(object): """ diff --git a/freezer/mode/fs.py b/freezer/mode/fs.py index 9cdaefaa..62346b6f 100644 --- a/freezer/mode/fs.py +++ b/freezer/mode/fs.py @@ -12,12 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log - from freezer.mode import mode -LOG = log.getLogger(__name__) - class FsMode(mode.Mode): diff --git a/freezer/mode/mode.py b/freezer/mode/mode.py index a345336d..b9e6def5 100644 --- a/freezer/mode/mode.py +++ b/freezer/mode/mode.py @@ -15,10 +15,6 @@ import abc import six -from oslo_log import log - -LOG = log.getLogger(__name__) - @six.add_metaclass(abc.ABCMeta) class Mode(object): diff --git a/freezer/mode/mysql.py b/freezer/mode/mysql.py index db61ef7c..6222b1f6 100644 --- a/freezer/mode/mysql.py +++ b/freezer/mode/mysql.py @@ -12,13 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log - from freezer.mode import mode from freezer.utils import config -LOG = log.getLogger(__name__) - class MysqlMode(mode.Mode): """ diff --git a/freezer/snapshot/snapshot.py b/freezer/snapshot/snapshot.py index 53b6b109..65454e9b 100644 --- a/freezer/snapshot/snapshot.py +++ b/freezer/snapshot/snapshot.py @@ -16,14 +16,10 @@ limitations under the License. Freezer Backup modes related functions """ -from oslo_log import log - from freezer.snapshot import lvm from freezer.snapshot import vss from freezer.utils import winutils -LOG = log.getLogger(__name__) - def snapshot_create(backup_opt_dict): """ diff --git a/freezer/storage/fslike.py b/freezer/storage/fslike.py index 62dbdd7a..4bbde78e 100644 --- a/freezer/storage/fslike.py +++ b/freezer/storage/fslike.py @@ -15,12 +15,8 @@ import abc import six -from oslo_log import log - from freezer.storage import physical -LOG = log.getLogger(__name__) - @six.add_metaclass(abc.ABCMeta) class FsLikeStorage(physical.PhysicalStorage): diff --git a/freezer/storage/local.py b/freezer/storage/local.py index 316c08f2..6643106e 100644 --- a/freezer/storage/local.py +++ b/freezer/storage/local.py @@ -19,13 +19,9 @@ import io import os import shutil -from oslo_log import log - from freezer.storage import fslike from freezer.utils import utils -LOG = log.getLogger(__name__) - class LocalStorage(fslike.FsLikeStorage): def get_file(self, from_path, to_path): diff --git a/freezer/storage/ssh.py b/freezer/storage/ssh.py index 6bcdb8d8..c9bd89f3 100644 --- a/freezer/storage/ssh.py +++ b/freezer/storage/ssh.py @@ -20,14 +20,10 @@ import stat import paramiko -from oslo_log import log - from freezer.storage import fslike from freezer.utils import utils -LOG = log.getLogger(__name__) - class SshStorage(fslike.FsLikeStorage): """