Skip to content

Commit c946add

Browse files
committed
Fixed debug mode (broken by args change)
1 parent 3ff1ec0 commit c946add

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def check_python_dependencies():
7676
import argparse
7777
import sh
7878
from appdirs import user_data_dir
79+
import logging
7980

8081
from pythonforandroid.recipe import (Recipe, PythonRecipe, CythonRecipe,
8182
CompiledComponentsPythonRecipe,
@@ -431,6 +432,9 @@ def add_parser(subparsers, *args, **kwargs):
431432

432433
setup_color(args.color)
433434

435+
if args.debug:
436+
logger.setLevel(logging.DEBUG)
437+
434438
# strip version from requirements, and put them in environ
435439
if hasattr(args, 'requirements'):
436440
requirements = []

0 commit comments

Comments
 (0)