diff --git a/rrs/tools/rrs_maintainer_history.py b/rrs/tools/rrs_maintainer_history.py index a286d91..83d8265 100755 --- a/rrs/tools/rrs_maintainer_history.py +++ b/rrs/tools/rrs_maintainer_history.py @@ -13,7 +13,7 @@ import optparse import logging sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__)))) -from common import common_setup, update_repo +from common import common_setup, update_repo, get_logger common_setup() from layerindex import utils, recipeparse @@ -159,7 +159,7 @@ if __name__=="__main__": action="store_const", const=logging.DEBUG, dest="loglevel", default=logging.INFO) - logger = utils.logger_create("MaintainerUpdate") + logger = get_logger("MaintainerUpdate", settings) options, args = parser.parse_args(sys.argv) logger.setLevel(options.loglevel) diff --git a/rrs/tools/rrs_upgrade_history.py b/rrs/tools/rrs_upgrade_history.py index c2e76a7..fd27da3 100755 --- a/rrs/tools/rrs_upgrade_history.py +++ b/rrs/tools/rrs_upgrade_history.py @@ -18,7 +18,8 @@ import optparse import logging sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__)))) -from common import common_setup, update_repo, get_pv_type, load_recipes +from common import common_setup, update_repo, get_pv_type, load_recipes, \ + get_logger common_setup() from layerindex import utils, recipeparse from layerindex.update import split_recipe_fn @@ -27,7 +28,7 @@ utils.setup_django() from django.db import transaction import settings -logger = utils.logger_create("HistoryUpgrade") +logger = get_logger("HistoryUpgrade", settings) fetchdir = settings.LAYER_FETCH_DIR if not fetchdir: logger.error("Please set LAYER_FETCH_DIR in settings.py") diff --git a/rrs/tools/rrs_upstream_email.py b/rrs/tools/rrs_upstream_email.py index a3a7f72..8cadd05 100755 --- a/rrs/tools/rrs_upstream_email.py +++ b/rrs/tools/rrs_upstream_email.py @@ -15,7 +15,7 @@ import logging from tabulate import tabulate sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__)))) -from common import common_setup, update_repo, get_pv_type +from common import common_setup, update_repo, get_pv_type, get_logger common_setup() from layerindex import utils @@ -27,7 +27,7 @@ from layerindex.models import LayerItem, LayerBranch, Recipe from rrs.models import Maintainer, RecipeMaintainerHistory, RecipeMaintainer, \ RecipeUpstream, RecipeUpstreamHistory -logger = utils.logger_create('RrsUpstreamEmail') +logger = get_logger('UpstreamEmail', settings) LAYERBRANCH_NAME = "master"