From: Jonatan Schlag Date: Tue, 1 May 2018 08:24:32 +0000 (+0200) Subject: Improve log messages in recipe.py X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=faff2d5cfc26c1a927b6c1cd85c82bfdcd3ba4ee Improve log messages in recipe.py Signed-off-by: Jonatan Schlag --- diff --git a/recipe.py b/recipe.py index 725e099..a520e7a 100644 --- a/recipe.py +++ b/recipe.py @@ -35,11 +35,11 @@ class recipe(): self.in_recursion = False self.circle = circle - self.log.debug(circle) - self.log.debug(self.circle) + self.log.debug("Tests we have already included: {}".format(self.circle)) if not os.path.isfile(self.recipe_file): - self.log.error("No such file: {}".format(self.recipe_file)) + self.log.error("{} is not a file".format(self.recipe_file)) + raise RecipeExeption try: with open(self.recipe_file) as fobj: