Skip to content

Commit

Permalink
RENAME logcatAntilog to logcatLogger
Browse files Browse the repository at this point in the history
crash-logging
  • Loading branch information
ninovanhooff committed Apr 5, 2024
1 parent 7ca0248 commit 191ba61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private const val MAX_CHARS_IN_LOG = 1200
*/
class CrashlyticsLogger : Antilog() {

private val logcatAntilog = DebugAntilog()
private val logcatLogger = DebugAntilog()

override fun performLog(
priority: LogLevel,
Expand All @@ -30,7 +30,7 @@ class CrashlyticsLogger : Antilog() {

if (BuildConfig.DEBUG || priority > LogLevel.DEBUG) {
// also send to logcat
logcatAntilog.log(priority, tag, throwable, message)
logcatLogger.log(priority, tag, throwable, message)
}

val limitedMessage = message?.take(MAX_CHARS_IN_LOG) ?: "(no message)" // to avoid OutOfMemoryError's
Expand Down

0 comments on commit 191ba61

Please sign in to comment.