prepend hostname in emulator as well

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-11 00:28:53 +02:00
parent 9647933a40
commit 94cca2e537
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,6 @@ class ConfigInstall:
return True
def run_initial_manifest(self):
"""Run the initial manifest"""
log.info("Running initial manifest %s", self.initial_manifest)

View File

@ -34,6 +34,7 @@ def run(argv):
param_path = os.path.join(type_path, "parameter")
global_path = os.environ['__global']
object_source = os.environ['__cdist_manifest']
target_host = os.environ['__target_host']
if '__debug' in os.environ:
logging.root.setLevel(logging.DEBUG)
@ -68,7 +69,7 @@ def run(argv):
object_id = object_id[1:]
# Prefix output by object_self
logformat = '%(levelname)s: ' + cdist_type + '/' + object_id + ': %(message)s'
logformat = '%(levelname)s: ' + target_host + ": " + cdist_type + '/' + object_id + ': %(message)s'
logging.basicConfig(format=logformat)
# FIXME: verify object id
@ -103,7 +104,7 @@ def run(argv):
value = getattr(args, param)
if value:
file = os.path.join(param_out_dir, param)
log.debug(file + "<-" + param + " = " + value)
log.debug(file + " = " + value)
# Already exists, verify all parameter are the same
if object_exists: