Fix logging
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sat, 8 Sep 2018 11:05:56 +0000 (13:05 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sat, 8 Sep 2018 11:05:56 +0000 (13:05 +0200)
We always used the name of the recipe as he was always there

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/test.py

index 5104bb7..92d403b 100755 (executable)
@@ -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):