codelab-android-workmanager icon indicating copy to clipboard operation
codelab-android-workmanager copied to clipboard

Timber instead of Log??

Open tindelik opened this issue 3 years ago • 2 comments

In Background work with WorkManager - Kotlin, step 6 - Chain your work. code for BlurWorker.kt

... return try { if (TextUtils.isEmpty(resourceUri)) { Timber.e("Invalid input uri") <--- Should Timber not be Log? throw IllegalArgumentException("Invalid input uri") } ...

tindelik avatar Jun 01 '22 02:06 tindelik

https://developer.android.com/codelabs/android-workmanager#5

esafak avatar Dec 19 '22 01:12 esafak

Hi, yes "Timber" indeed !!! I think this is supposed to be a joke (and it's a VERY funny one lol) : The code is supposed to be "Log.e ..." but the developer has put "Timber" instead ... makes me think of lumberjacks shouting "TTttttiiimmmmmbbbeeerrrrrr !!!" as they fell the trees ......... REALLY funny I thought ... well done whoever coded that hahaha ;-)

vinz2112 avatar Mar 02 '23 14:03 vinz2112