Use oslo.log for heat_integrationtests
Later the integration jobs can be tuned to have their own
logging settings.
This change also raises _log_console_output to info, so it is displayed
by default.
Change-Id: Ifcaa6faf76c655e0c8cfd7d76775b80de70062c4
diff --git a/common/clients.py b/common/clients.py
index 5a4dd5a..1ba3a21 100644
--- a/common/clients.py
+++ b/common/clients.py
@@ -20,10 +20,6 @@
import novaclient.client
import swiftclient
-import logging
-
-LOG = logging.getLogger(__name__)
-
class ClientManager(object):
"""
diff --git a/common/remote_client.py b/common/remote_client.py
index 5365ceb..2955418 100644
--- a/common/remote_client.py
+++ b/common/remote_client.py
@@ -11,12 +11,12 @@
# under the License.
import cStringIO
-import logging
import re
import select
import socket
import time
+from oslo_log import log as logging
import paramiko
import six
diff --git a/common/test.py b/common/test.py
index 0ffa2b0..26abe6b 100644
--- a/common/test.py
+++ b/common/test.py
@@ -10,7 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import logging
import os
import random
import re
@@ -19,6 +18,7 @@
import fixtures
from heatclient import exc as heat_exceptions
+from oslo_log import log as logging
from oslo_utils import timeutils
import six
import testscenarios
@@ -111,8 +111,8 @@
if not servers:
servers = self.compute_client.servers.list()
for server in servers:
- LOG.debug('Console output for %s', server.id)
- LOG.debug(server.get_console_output())
+ LOG.info('Console output for %s', server.id)
+ LOG.info(server.get_console_output())
def _load_template(self, base_file, file_name, sub_dir=None):
sub_dir = sub_dir or ''