Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

fix: IllegalArgumentException in AnkoLogger #46

Merged
merged 2 commits into from
May 26, 2015
Merged

fix: IllegalArgumentException in AnkoLogger #46

merged 2 commits into from
May 26, 2015

Conversation

timfreiheit
Copy link
Contributor

Log.isLoggable will throw an IllegalArgumentException when the tag.length() > 23.
See http://developer.android.com/reference/android/util/Log.html for more informations.

get() = javaClass.getSimpleName()
get(){
val tag = javaClass.getSimpleName()
return if(tag.length() <= 23){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (tag.length() <= 23) {

@yanex
Copy link
Member

yanex commented May 25, 2015

Thank you for the pull request!
Could you fix the formatting?

@timfreiheit
Copy link
Contributor Author

pull request updated :)

yanex added a commit that referenced this pull request May 26, 2015
Fix: IllegalArgumentException in AnkoLogger
@yanex yanex merged commit b4df65c into Kotlin:master May 26, 2015
@yanex
Copy link
Member

yanex commented May 26, 2015

Merged!

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

Successfully merging this pull request may close these issues.

None yet

2 participants