Revision 74a48621

b/lib/config.py
38 38

  
39 39
from ganeti import errors
40 40
from ganeti import locking
41
from ganeti import logger
42 41
from ganeti import utils
43 42
from ganeti import constants
44 43
from ganeti import rpc
......
420 419

  
421 420
    if instance.disk_template != constants.DT_DISKLESS:
422 421
      all_lvs = instance.MapLVsByNode()
423
      logger.Info("Instance '%s' DISK_LAYOUT: %s" % (instance.name, all_lvs))
422
      logging.info("Instance '%s' DISK_LAYOUT: %s", instance.name, all_lvs)
424 423

  
425 424
    self._OpenConfig()
426 425
    self._config_data.instances[instance.name] = instance
......
741 740
    result = rpc.call_upload_file(nodelist, self._cfg_file)
742 741
    for node in nodelist:
743 742
      if not result[node]:
744
        logger.Error("copy of file %s to node %s failed" %
745
                     (self._cfg_file, node))
743
        logging.error("copy of file %s to node %s failed",
744
                      self._cfg_file, node)
746 745
        bad = True
747 746
    return not bad
748 747

  

Also available in: Unified diff