mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/tools/rrs_unique_recipes.py: 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
0aba352c22
commit
8a5bbea99f
|
@ -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, 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
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ if __name__=="__main__":
|
||||||
help = "Enable debug output",
|
help = "Enable debug output",
|
||||||
action="store_const", const=logging.DEBUG, dest="loglevel", default=logging.INFO)
|
action="store_const", const=logging.DEBUG, dest="loglevel", default=logging.INFO)
|
||||||
|
|
||||||
logger = utils.logger_create("HistoryUpgrade")
|
logger = get_logger("UniqueRecipes", settings)
|
||||||
options, args = parser.parse_args(sys.argv)
|
options, args = parser.parse_args(sys.argv)
|
||||||
logger.setLevel(options.loglevel)
|
logger.setLevel(options.loglevel)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user