From a7a3ee6f1908575dbe5d06b9ced6432acd7ffdea Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 15 Oct 2011 02:36:33 +0200 Subject: [PATCH] adjust prefix Signed-off-by: Nico Schottelius --- lib/cdist/emulator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cdist/emulator.py b/lib/cdist/emulator.py index edf7ab1c..a5e9d306 100644 --- a/lib/cdist/emulator.py +++ b/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):