question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timber.debugTree splite lose word

See original GitHub issue
// Split by line, then ensure each line can fit into Log's maximum length.
      for (int i = 0, length = message.length(); i < length; i++) {
        int newline = message.indexOf('\n', i);
        newline = newline != -1 ? newline : length;
        do {
          int end = Math.min(newline, i + MAX_LOG_LENGTH);
          String part = message.substring(i, end);
          if (priority == Log.ASSERT) {
            Log.wtf(tag, part);
          } else {
            Log.println(priority, tag, part);
          }
          i = end;
        } while (i < newline);
      }
// the beginning index, inclusive.
// the ending index, exclusive
// while i == 0
message.substring(0, 4000);
// while i == 1
message.substring(4001, 8001);

// lost 4000

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gmk57commented, Jun 1, 2021

The same happens for Cyrillic text, approximately half of it is lost. 😦

1reaction
JakeWhartoncommented, Mar 10, 2021

You’re saying the kernel header is in utf-8(?) bytes but Timber is erroneously counting chars? That sounds like a plausible explanation!

Read more comments on GitHub >

github_iconTop Results From Across the Web

timber - Bountysource
Timber.debugTree splite lose word $ 0. Created 4 years ago in JakeWharton/timber with 6 comments. // Split by line, then ensure each line...
Read more >
Cannot resolve method 'plant(timber.log.Timber.DebugTree)'
It means that something is out of sync. Similar things happen to me occasionally with Android Studio. Try exiting AS and restarting it....
Read more >
Advanced Android in Kotlin 05.2: Introduction to Test Doubles ...
Your tests could lose their ability to diagnose which code is at fault for a test failure. ... DEBUG) Timber.plant(DebugTree()) }
Read more >
Viewing online file analysis results for 'WaveUp-3.2.14.apk'
Spyware: Installs a monitor for the phone state (e.g. incoming calls); Fingerprint: Has the ability to query the phone location (GPS)
Read more >
com.raizlabs.android.dbflow.config.FlowManager Java Exaples
In order to prevent * loss of data, please backup often! */ public boolean restoreBackUp() { boolean success = true; File db =...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found