aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
diff options
context:
space:
mode:
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