GithubHelp home page GithubHelp logo

Comments (5)

JakeWharton avatar JakeWharton commented on June 23, 2024

How are you calling? There are four method calls inside Timber and the fifth is your callsite.

from timber.

jbarr21 avatar jbarr21 commented on June 23, 2024

like this...

    (new Thread() {
            @Override
            public void run() {
                try {
                    OrderParams orderParams = new OrderParams(UserAccount.getLoggedInUserId(), purchaseId);
                    ClientApis.getApi().submitOrderNotice(orderParams);
                } catch (RetrofitError re) {
                    Timber.e(re, "Error submitting order notice on product purchase completed");
                }
            }
        }).start();

from timber.

jbarr21 avatar jbarr21 commented on June 23, 2024

Exception from log...

java.lang.ArrayIndexOutOfBoundsException: length=5; index=5
            at timber.log.Timber$DebugTree.a(Timber.java:255)
            at timber.log.Timber$DebugTree.c(Timber.java:248)
            at timber.log.Timber$1.c(Timber.java:139)
            at timber.log.Timber.c(Timber.java:59)
            at com.clientname.util.ClientNameMediatorImpl$1.run(ClientNameMediatorImpl.java:73)

from timber.

edenman avatar edenman commented on June 23, 2024

I can't repro this...even if I log from a thread, I still get this as the top 5 items in the new Throwable()'s stack:
screen shot 2014-05-29 at 1 32 23 pm

It looks like your stacktrace is obfuscated, maybe proguard is inlining methods/classes in Timber and that's what's causing the stack to be shorter than we expect. Can you try excluding Timber from the proguard config and see if that fixes it?

from timber.

jbarr21 avatar jbarr21 commented on June 23, 2024

Ah, proguard. Thanks @edenman! That did the trick.

from timber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.