From dc21405583d2da14b7822df2b57d10ecfe127f91 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 11 Oct 2011 16:26:01 +0200 Subject: [PATCH] use target host as key for logger Signed-off-by: Nico Schottelius --- lib/cdist/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/context.py b/lib/cdist/context.py index f1cd4c14..9550b96e 100644 --- a/lib/cdist/context.py +++ b/lib/cdist/context.py @@ -47,7 +47,7 @@ class Context: self.exec_path = exec_path # Context logging - self.log = logging.getLogger(__name__) + self.log = logging.getLogger(self.target_host) self.log.addFilter(self) # Base and Temp Base