adjust prefix

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 14 years ago
parent e002710c4c
commit a7a3ee6f19
  1. 6
      lib/cdist/emulator.py

@ -55,10 +55,10 @@ class Emulator(object):
def filter(self, record):
"""Add hostname and object to logs via logging Filter"""
prefix = self.target_host + ": "
prefix = self.target_host + ": (emulator)"
if self.object_id:
prefix = prefix + self.type_name + "/" + self.object_id
prefix = prefix + " " + self.type_name + "/" + self.object_id
record.msg = prefix + ": " + record.msg
@ -108,7 +108,7 @@ class Emulator(object):
# And finally parse/verify parameter
self.args = parser.parse_args(self.argv[1:])
self.log.debug('Emulator args: %s' % self.args)
self.log.debug('Args: %s' % self.args)
def setup_object(self):

Loading…
Cancel
Save