aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-03 22:24:19 -0700
committerAllan Wang <me@allanwang.ca>2017-06-03 22:24:19 -0700
commit23d0e789c71ace6a11206a0d6176bd8318185694 (patch)
treef1b04c07afcccf74dea9180cdc7d4f8be2c08a09 /app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
parent1f6e34c8f7edeab8af071bfa9cdbd8137c658a69 (diff)
downloadfrost-23d0e789c71ace6a11206a0d6176bd8318185694.tar.gz
frost-23d0e789c71ace6a11206a0d6176bd8318185694.tar.bz2
frost-23d0e789c71ace6a11206a0d6176bd8318185694.zip
Crashlytics for test builds
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.kt18
1 files changed, 6 insertions, 12 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 690f967c..63fbaffb 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
@@ -17,19 +17,13 @@ object L {
}
internal class CrashReportingTree : Timber.Tree() {
- override fun log(priority: Int, tag: String, message: String, t: Throwable?) {
+ override fun log(priority: Int, tag: String?, message: String?, t: Throwable?) {
if (priority == Log.VERBOSE || priority == Log.DEBUG)
return
- Log.println(priority, tag, message)
- Crashlytics.log(priority, tag, message)
-// FakeCrashLibrary.log(priority, tag, message)
-
-// if (t != null) {
-// if (priority == Log.ERROR) {
-// FakeCrashLibrary.logError(t)
-// } else if (priority == Log.WARN) {
-// FakeCrashLibrary.logWarning(t)
-// }
-// }
+ if (message != null) {
+ Log.println(priority, tag ?: "Frost", message)
+// Crashlytics.log(priority, tag ?: "Frost", message)
+ }
+// if (t != null) Crashlytics.logException(t)
}
} \ No newline at end of file