buildozer icon indicating copy to clipboard operation
buildozer copied to clipboard

Disable line truncation

Open OrangeDog opened this issue 3 years ago • 6 comments
trafficstars

All output appears to be truncated to the terminal width and replaced with e.g. ...(and 132 more) This causes vital debugging information to be lost.

It should be possible to disable this and allow the terminal to wrap itself, especially if the output is to a pipe or file.

[1m[INFO][0m:    [90m->[0m running find /home/me/project/.buildozer/android/platf...(and 102 more)[0m
[0m
           working: /home/me/project/.buildozer/android/platform/build-armeab...(and 133 more) [0m
[1m[INFO][0m:    [90m->[0m running mv /home/me/project/.buildozer/android/platfor...(and 349 more)[0m

OrangeDog avatar Dec 09 '21 15:12 OrangeDog

https://github.com/kivy/buildozer/blob/f2aefa895697d6dadf3f9ab428a4738a7f1de55c/buildozer/default.spec#L376

HyTurtle avatar Dec 09 '21 15:12 HyTurtle

@HyTurtle yes, that's the log level. That has no effect on the horizontal truncation.

OrangeDog avatar Dec 09 '21 15:12 OrangeDog

If you're sure - then would be a p4a issue rather than a buildozer one, https://github.com/kivy/python-for-android/blob/8336cea09c572c2a234ddda211226a1eb8b2ad1d/pythonforandroid/logger.py#L156 it shouldn't be shortened if log level is higher than debug

HyTurtle avatar Dec 09 '21 15:12 HyTurtle

Or buildozer has the log values the wrong way around, because debug (2) is the highest.

OrangeDog avatar Dec 09 '21 16:12 OrangeDog

Info is higher than debug (in logging hierarchy); that does seem to be a bug though - if that is where the shortening is coming from that is - misspoke a touch it shouldn't shorten if its set as debug (which probably shouldn't be the default), do you get less output setting that to info or the same?

Regardless would probably need to move to the p4a repo and can you check which branch you are using?

HyTurtle avatar Dec 09 '21 16:12 HyTurtle

Setting it to info (log_level = 1) gives significantly less output.

OrangeDog avatar Dec 15 '21 10:12 OrangeDog