mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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:
parent
00045cb6dc
commit
45bd164233
|
@ -13,7 +13,7 @@ import optparse
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__))))
|
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()
|
common_setup()
|
||||||
from layerindex import utils, recipeparse
|
from layerindex import utils, recipeparse
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ if __name__=="__main__":
|
||||||
action="store_const", const=logging.DEBUG, dest="loglevel",
|
action="store_const", const=logging.DEBUG, dest="loglevel",
|
||||||
default=logging.INFO)
|
default=logging.INFO)
|
||||||
|
|
||||||
logger = utils.logger_create("MaintainerUpdate")
|
logger = get_logger("MaintainerUpdate", settings)
|
||||||
options, args = parser.parse_args(sys.argv)
|
options, args = parser.parse_args(sys.argv)
|
||||||
logger.setLevel(options.loglevel)
|
logger.setLevel(options.loglevel)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,8 @@ import optparse
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__))))
|
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()
|
common_setup()
|
||||||
from layerindex import utils, recipeparse
|
from layerindex import utils, recipeparse
|
||||||
from layerindex.update import split_recipe_fn
|
from layerindex.update import split_recipe_fn
|
||||||
|
@ -27,7 +28,7 @@ utils.setup_django()
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
import settings
|
import settings
|
||||||
|
|
||||||
logger = utils.logger_create("HistoryUpgrade")
|
logger = get_logger("HistoryUpgrade", settings)
|
||||||
fetchdir = settings.LAYER_FETCH_DIR
|
fetchdir = settings.LAYER_FETCH_DIR
|
||||||
if not fetchdir:
|
if not fetchdir:
|
||||||
logger.error("Please set LAYER_FETCH_DIR in settings.py")
|
logger.error("Please set LAYER_FETCH_DIR in settings.py")
|
||||||
|
|
|
@ -15,7 +15,7 @@ import logging
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
|
|
||||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__))))
|
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()
|
common_setup()
|
||||||
from layerindex import utils
|
from layerindex import utils
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ from layerindex.models import LayerItem, LayerBranch, Recipe
|
||||||
from rrs.models import Maintainer, RecipeMaintainerHistory, RecipeMaintainer, \
|
from rrs.models import Maintainer, RecipeMaintainerHistory, RecipeMaintainer, \
|
||||||
RecipeUpstream, RecipeUpstreamHistory
|
RecipeUpstream, RecipeUpstreamHistory
|
||||||
|
|
||||||
logger = utils.logger_create('RrsUpstreamEmail')
|
logger = get_logger('UpstreamEmail', settings)
|
||||||
|
|
||||||
LAYERBRANCH_NAME = "master"
|
LAYERBRANCH_NAME = "master"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user