Refine debugLog

This commit is contained in:
Mygod
2018-12-29 00:04:07 +08:00
parent 67d3e8a52d
commit dfc1f3cffa

View File

@@ -20,6 +20,5 @@ fun initTimber() {
}
fun debugLog(tag: String?, message: String?) {
if (BuildConfig.DEBUG) Timber.tag(tag).d(message)
Crashlytics.log("$tag: $message")
if (BuildConfig.DEBUG) Timber.tag(tag).d(message) else Crashlytics.log("$tag: $message")
}