From 2468cf99d802782c3a9a5cd685d626a85588c5fc Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Sat, 8 Sep 2018 13:05:56 +0200 Subject: [PATCH] Fix logging We always used the name of the recipe as he was always there Signed-off-by: Jonatan Schlag --- src/nitsi/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nitsi/test.py b/src/nitsi/test.py index 5104bb7..92d403b 100755 --- a/src/nitsi/test.py +++ b/src/nitsi/test.py @@ -91,9 +91,9 @@ class Test(): # Init logging if dir: - self.log = logger.getChild(os.path.basename(self.path)) - - if recipe: + self.log = logger.getChild(os.path.basename(self.path)) + # We get a recipe when we get here + else: self.log = logger.getChild(os.path.basename(self.recipe_file)) def read_settings(self): -- 2.39.2