Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception and Formatter issues #10

Open
silentnuke-old opened this issue Jan 10, 2016 · 1 comment
Open

Exception and Formatter issues #10

silentnuke-old opened this issue Jan 10, 2016 · 1 comment

Comments

@silentnuke-old
Copy link

There are some issues with exception and formatter:

Log.useFormat(true);
Exception e = new Exception("foo");
Log.d(TAG, "Something bad happened %d, error", 123, e);

prints: 'Something bad happened 123, error'

Log.useFormat(true);
Exception e = new Exception("foo");
Log.d(TAG, "Something bad happened %d, error %s", 123, e);

Crash the app with exception: Caused by: java.util.MissingFormatArgumentException:

@seyidkanan
Copy link

maybe you will use in case number 2 below code version?
Log.d(TAG, "Something bad happened %d, error %s", 123, e.toString());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants