Repository navigation
Use timber instead of printstacktrace - #2792
Conversation
0ee9134 to
f6aee7e
Compare
| } catch (AuthenticatorException e) { | ||
| Timber.e(e, "Failed to validate account type " + accountType + ": " + e.getMessage()); | ||
| e.printStackTrace(); | ||
| Timber.e(e, "Failed to validate account type %s", accountType); |
There was a problem hiding this comment.
We are duplicating code here, please create a method with:
try {
validateAccountType(accountType);
} catch (AuthenticatorException e) {
Timber.e(e, "Failed to validate account type %s", accountType);
return e.getFailureBundle();
}
There was a problem hiding this comment.
I think that it is out of this pr scope which is to stop using printStacktrace.
BTW, we are going to refactor this class in the short term future with the new arch. So we can face this kind of problems there. Can't we?
There was a problem hiding this comment.
I try to use the boy scout rule (leave the code better than you found it) if the changes are tiny. I thought this was a good example but it looks good to me anyway.
|
@jesmrec code approved, ready to test |
|
No much to test here, beyond the basic checks. Timber is making the magic. Approved. |
33731cd to
35e9ac3
Compare
|
@davigonz Instead of perform a |
|
Thanks for the tip @hannesa2 , I'll give it a try in coming rebases with master |

Continuation of #2770 suggested in owncloud/android-library#293 (comment)
Needs owncloud/android-library#297