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