[TIMOB-23438] Android: Logs get truncated after 4036 characters
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 5.3.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Unknown |
Created | 2016-05-25T19:45:56.000+0000 |
Updated | 2018-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.
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.