X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=blobdiff_plain;f=recipe.py;fp=recipe.py;h=3a9b009deba6e8990cb8b384dd22f579c4d19292;hp=07617f7c66578e9cf8a3797abaaa017a7eaaa2b9;hb=1ed8ca9f2ddd8d9cd0cf1a47ed1ebb4376a0db53;hpb=acadcd05b057f513d46e3996d73fbc86d391a030 diff --git a/recipe.py b/recipe.py index 07617f7..3a9b009 100644 --- a/recipe.py +++ b/recipe.py @@ -2,6 +2,10 @@ import os +import logging + +logger = logging.getLogger("nitsi.recipe") + class RecipeExeption(Exception): @@ -13,8 +17,8 @@ class RecipeExeption(Exception): # and return tuples with the ( host, command ) structure class recipe(): def __init__(self, path, circle=[]): - self.log = log(4) self.recipe_file = path + self.log = logger.getChild(os.path.basename(self.recipe_file)) self.path = os.path.dirname(self.recipe_file) self.log.debug("Path of recipe is: {}".format(self.recipe_file)) self._recipe = None