Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23438] Android: Logs get truncated after 4036 characters

GitHub Issuen/a
TypeBug
PriorityMedium
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 5.3.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterChristopher Williams
AssigneeUnknown
Created2016-05-25T19:45:56.000+0000
Updated2018-02-28T19:54:52.000+0000

Description

If you attempt to spit out a log to Ti.API.info (or other levels), the output gets truncated. Running a mocha test suite and spitting out a long JSON.stringify version of the results ends up getting it truncated at 4036 characters (ignoring the [INFO] " prefix). Looks to be a logcat issue: http://stackoverflow.com/questions/8888654/android-set-max-length-of-logcat-messages We may want to consider making Ti.API.log chunk up very long strings to avoid this.

Comments

  1. Christopher Williams 2016-06-01

    I don't believe this is a duplicate of any other ticket. TIMOB-23443 was about the CLI dropping logs randomly due to receiving stdout mid-line and assuming we always got full lines, so regexp tests failed for filtering logs.

JSON Source