From 439f07ada5adf45766e80f882d4bc8be7c942413 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sun, 2 Jun 2024 19:55:13 +0200 Subject: [PATCH] :mute: Set sh.command log level to warning sh INFO log level is too verbose by default, refs upstream TODO --- ci/rebuild_updated_recipes.py | 4 ++++ pythonforandroid/toolchain.py | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ci/rebuild_updated_recipes.py b/ci/rebuild_updated_recipes.py index a1ca96681d..6846b28909 100755 --- a/ci/rebuild_updated_recipes.py +++ b/ci/rebuild_updated_recipes.py @@ -24,6 +24,7 @@ import os import sys import argparse +import logging from pythonforandroid.build import Context from pythonforandroid import logger from pythonforandroid.toolchain import current_directory @@ -31,6 +32,9 @@ from ci.constants import TargetPython, CORE_RECIPES, BROKEN_RECIPES +logging.getLogger("sh.command").setLevel(logging.WARNING) + + def modified_recipes(branch='origin/develop'): """ Returns a set of modified recipes between the current branch and the one diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py index 1347038b8b..2189f9bd09 100644 --- a/pythonforandroid/toolchain.py +++ b/pythonforandroid/toolchain.py @@ -592,7 +592,12 @@ def add_parser(subparsers, *args, **kwargs): setup_color(args.color) if args.debug: - logger.setLevel(logging.DEBUG) + print("=========================== TODO: debugging, setting DEBUG logger ====================") + # TODO debugging + # logger.setLevel(logging.DEBUG) + logger.setLevel + logging.DEBUG + pass self.ctx = Context() self.ctx.use_setup_py = getattr(args, "use_setup_py", True)