Skip to content

Commit

Permalink
🔇 Set sh.command log level to warning
Browse files Browse the repository at this point in the history
sh INFO log level is too verbose by default, refs upstream TODO
  • Loading branch information
AndreMiras committed Jun 2, 2024
1 parent b8041e7 commit e80652b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ci/rebuild_updated_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@
import os
import sys
import argparse
import logging
from pythonforandroid.build import Context
from pythonforandroid import logger
from pythonforandroid.toolchain import current_directory
from pythonforandroid.recipe import Recipe
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
Expand Down
6 changes: 5 additions & 1 deletion pythonforandroid/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,11 @@ def add_parser(subparsers, *args, **kwargs):
setup_color(args.color)

if args.debug:
logger.setLevel(logging.DEBUG)
# 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)
Expand Down

0 comments on commit e80652b

Please sign in to comment.