From: Jonatan Schlag Date: Sat, 8 Sep 2018 11:05:56 +0000 (+0200) Subject: Fix logging X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=2468cf99d802782c3a9a5cd685d626a85588c5fc Fix logging We always used the name of the recipe as he was always there Signed-off-by: Jonatan Schlag --- 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):