Improve log messages in recipe.py
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 1 May 2018 08:24:32 +0000 (10:24 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 1 May 2018 08:24:32 +0000 (10:24 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
recipe.py

index 725e099..a520e7a 100644 (file)
--- 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: