From 74a486212e09306f3deabf40b96e1655475a00a1 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Wed, 24 Sep 2008 13:43:32 +0000 Subject: [PATCH] Switch config.py to logging A couple of more modules are using the obsolete logger functions, config being one of them. Reviewed-by: imsnah --- lib/config.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/config.py b/lib/config.py index 8198b1c8f..e24a17d3d 100644 --- a/lib/config.py +++ b/lib/config.py @@ -38,7 +38,6 @@ import logging from ganeti import errors from ganeti import locking -from ganeti import logger from ganeti import utils from ganeti import constants from ganeti import rpc @@ -420,7 +419,7 @@ class ConfigWriter: if instance.disk_template != constants.DT_DISKLESS: all_lvs = instance.MapLVsByNode() - logger.Info("Instance '%s' DISK_LAYOUT: %s" % (instance.name, all_lvs)) + logging.info("Instance '%s' DISK_LAYOUT: %s", instance.name, all_lvs) self._OpenConfig() self._config_data.instances[instance.name] = instance @@ -741,8 +740,8 @@ class ConfigWriter: result = rpc.call_upload_file(nodelist, self._cfg_file) for node in nodelist: if not result[node]: - logger.Error("copy of file %s to node %s failed" % - (self._cfg_file, node)) + logging.error("copy of file %s to node %s failed", + self._cfg_file, node) bad = True return not bad -- GitLab