noveogroup / android-logger

Useful logger for Android based on standard android.util.Log class. Simple lightweight (< 50 Kb) implementation of SLF4J API. Easy but powerful configuration via properties file and some additional helpful logging methods. Easy analogue of popular log4j library.

Home Page:https://noveogroup.github.io/android-logger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App crash due to format exception

Shahul3D opened this issue · comments

Log.a("jsonResponse" + jsonResponse);

This caused the below crash:
java.util.MissingFormatArgumentException: Format specifier: 3a
at java.util.Formatter.getArgument(Formatter.java:1111)
at java.util.Formatter.doFormat(Formatter.java:1076)
at java.util.Formatter.format(Formatter.java:1042)
at java.util.Formatter.format(Formatter.java:1011)
at java.lang.String.format(String.java:1803)
at java.lang.String.format(String.java:1777)
at com.noveogroup.android.log.PatternHandler.print(PatternHandler.java:355)
at com.noveogroup.android.log.SimpleLogger.print(SimpleLogger.java:63)
at com.noveogroup.android.log.AbstractLogger.a(AbstractLogger.java:167)
at com.noveogroup.android.log.Log.a(Log.java:313)
at com.myapp.APIController$13.onResponse(ChatController.java:696)
at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:170)
at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Is this a known bug? I'm running latest version.

Fixed in 1.3.6.

Thank you for issue reporting.