aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-12-31 02:44:46 -0500
committerGitHub <noreply@github.com>2017-12-31 02:44:46 -0500
commit725d6a99a07f91f940a07e6b49dd6224a6aa32d1 (patch)
tree4e0b1b3b9ffe9b5aef3c8d0f154ea9ab1058fd5e /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
parent3076d9a97c203497aec1415d8ac6037d10eebb46 (diff)
downloadfrost-725d6a99a07f91f940a07e6b49dd6224a6aa32d1.tar.gz
frost-725d6a99a07f91f940a07e6b49dd6224a6aa32d1.tar.bz2
frost-725d6a99a07f91f940a07e6b49dd6224a6aa32d1.zip
Enhancement/proguard (#589)
* Add error log * Rewrite logger
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
index fa2bdf8a..8ba81414 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
@@ -65,9 +65,8 @@ class FrostApp : Application() {
Crashlytics.setUserIdentifier(Prefs.frostId)
}
KL.debug(BuildConfig.DEBUG)
- L.debug(BuildConfig.DEBUG)
Prefs.verboseLogging = false
- L.i("Begin Frost for Facebook")
+ L.i { "Begin Frost for Facebook" }
FbCookie()
FrostPglAdBlock.init(this)
if (Prefs.installDate == -1L) Prefs.installDate = System.currentTimeMillis()
@@ -99,7 +98,7 @@ class FrostApp : Application() {
override fun onActivityStarted(activity: Activity) {}
override fun onActivityDestroyed(activity: Activity) {
- L.d("Activity ${activity.localClassName} destroyed")
+ L.d { "Activity ${activity.localClassName} destroyed" }
}
override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle?) {}
@@ -107,7 +106,7 @@ class FrostApp : Application() {
override fun onActivityStopped(activity: Activity) {}
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
- L.d("Activity ${activity.localClassName} created")
+ L.d { "Activity ${activity.localClassName} created" }
}
})
}