Skip to content

Commit e15277b

Browse files
committed
Aligned output messages of different log levels
1 parent 9257b02 commit e15277b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def format(self, record):
5050
record.msg = '{}{}[WARNING]{}{}: '.format(
5151
Style.BRIGHT, Fore.RED, Fore.RESET, Style.RESET_ALL) + record.msg
5252
elif record.levelno > 10:
53-
record.msg = '{}[INFO]{}: '.format(
53+
record.msg = '{}[INFO]{}: '.format(
5454
Style.BRIGHT, Style.RESET_ALL) + record.msg
5555
else:
56-
record.msg = '{}{}[DEBUG]{}{}: '.format(
56+
record.msg = '{}{}[DEBUG]{}{}: '.format(
5757
Style.BRIGHT, Fore.LIGHTBLACK_EX, Fore.RESET, Style.RESET_ALL) + record.msg
5858
return super(LevelDifferentiatingFormatter, self).format(record)
5959

@@ -131,7 +131,7 @@ def shprint(command, *args, **kwargs):
131131
need_closing_newline = False
132132
for line in output:
133133
if logger.level > logging.DEBUG:
134-
string = '\r' + 'working ... ' + line[:100].replace('\n', '').rstrip() + ' ...'
134+
string = '\r' + ' '*11 + 'working ... ' + line[:100].replace('\n', '').rstrip() + ' ...'
135135
if len(string) < 20:
136136
continue
137137
if len(string) < 120:
@@ -969,7 +969,7 @@ def get_distribution(cls, ctx, name=None, recipes=[], allow_download=True,
969969
'the given requirements:')
970970
pretty_log_dists(possible_dists)
971971
else:
972-
info('{}No existing dists meet the given requirements!{}'.format(Fore.RED, Fore.RESET))
972+
info('No existing dists meet the given requirements!')
973973

974974

975975
# If any dist has perfect recipes, return it

0 commit comments

Comments
 (0)