diff options
author | Allan Wang <me@allanwang.ca> | 2019-03-07 17:28:32 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-03-07 17:28:32 -0500 |
commit | e617c95e2b4acfcfbeb1a72a658f19e69eaa3d6c (patch) | |
tree | 8a8171b7ab6f743051af7fd71bcd8ba538a486b8 /app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt | |
parent | 9e201159fd6697d83a16b7f7cfc5e7e302d55152 (diff) | |
download | frost-e617c95e2b4acfcfbeb1a72a658f19e69eaa3d6c.tar.gz frost-e617c95e2b4acfcfbeb1a72a658f19e69eaa3d6c.tar.bz2 frost-e617c95e2b4acfcfbeb1a72a658f19e69eaa3d6c.zip |
Rename some methods
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt index 8364c34e..7d2e0e08 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt @@ -20,6 +20,7 @@ import android.util.Log import ca.allanwang.kau.logging.KauLogger import com.bugsnag.android.Bugsnag import com.pitchedapps.frost.BuildConfig +import java.lang.Exception /** * Created by Allan Wang on 2017-05-28. @@ -50,6 +51,11 @@ object L : KauLogger("Frost", { d(message) } + inline fun _e(e: Throwable?, message: () -> Any?) { + if (BuildConfig.DEBUG) + e(e, message) + } + override fun logImpl(priority: Int, message: String?, t: Throwable?) { if (BuildConfig.DEBUG) super.logImpl(priority, message, t) |