From d70eaced8d71b82843861b7ad7cd447262894f7c Mon Sep 17 00:00:00 2001 From: iswarya_vakati Date: Mon, 20 Feb 2017 18:51:23 +0530 Subject: [PATCH] Remove unused logging import Change-Id: I0240233b7b69e110208c41f5b4c65c6351bc6f63 --- monasca_setup/detection/plugins/http_check.py | 3 --- monasca_setup/detection/utils.py | 4 ---- tests_to_fix/test_cacti.py | 3 --- tests_to_fix/test_postfix.py | 4 ---- 4 files changed, 14 deletions(-) diff --git a/monasca_setup/detection/plugins/http_check.py b/monasca_setup/detection/plugins/http_check.py index 3e1f6367..47606e9e 100644 --- a/monasca_setup/detection/plugins/http_check.py +++ b/monasca_setup/detection/plugins/http_check.py @@ -1,13 +1,10 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP import ast -import logging import monasca_setup.agent_config import monasca_setup.detection -log = logging.getLogger(__name__) - class HttpCheck(monasca_setup.detection.ArgsPlugin): """Setup an http_check according to the passed in args. diff --git a/monasca_setup/detection/utils.py b/monasca_setup/detection/utils.py index c5342430..b52e8037 100644 --- a/monasca_setup/detection/utils.py +++ b/monasca_setup/detection/utils.py @@ -2,7 +2,6 @@ """ Util functions to assist in detection. """ -import logging import subprocess from subprocess import CalledProcessError from subprocess import PIPE @@ -11,9 +10,6 @@ from subprocess import Popen from monasca_agent.common.psutil_wrapper import psutil from monasca_setup import agent_config -log = logging.getLogger(__name__) - - # check_output was introduced in python 2.7, function added # to accommodate python 2.6 try: diff --git a/tests_to_fix/test_cacti.py b/tests_to_fix/test_cacti.py index 70eb3bf0..aad402dc 100644 --- a/tests_to_fix/test_cacti.py +++ b/tests_to_fix/test_cacti.py @@ -2,11 +2,8 @@ from common import get_check import unittest import os -import logging import shutil -log = logging.getLogger() - CONFIG = """ init_config: diff --git a/tests_to_fix/test_postfix.py b/tests_to_fix/test_postfix.py index 2b81b063..cf4e6695 100644 --- a/tests_to_fix/test_postfix.py +++ b/tests_to_fix/test_postfix.py @@ -5,13 +5,9 @@ import unittest import os import binascii import re -import logging import shutil from nose.plugins.skip import SkipTest -log = logging.getLogger() - - class TestPostfix(unittest.TestCase): # # you can execute this dd-agent unit test via python's nose tool