rrs/tools: Change to use get_logger from common.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2015-07-07 08:59:15 -05:00 committed by Paul Eggleton
parent 00045cb6dc
commit 45bd164233
3 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -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")

View File

@ -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"