feat: Remove debug logging from various components for cleaner code

This commit is contained in:
k1ngsterr1
2026-01-14 04:43:32 +05:00
parent 5f6cde3885
commit 42d2eb9e9c
8 changed files with 1 additions and 130 deletions

View File

@@ -1,6 +1,5 @@
package com.rosetta.messenger.network
import android.util.Log
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
@@ -35,7 +34,6 @@ class Protocol(
}
private fun log(message: String) {
Log.d(TAG, message)
logger(message)
}

View File

@@ -1,7 +1,6 @@
package com.rosetta.messenger.network
import android.content.Context
import android.util.Log
import com.rosetta.messenger.data.MessageRepository
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.MutableStateFlow
@@ -41,8 +40,6 @@ object ProtocolManager {
fun addLog(message: String) {
val timestamp = dateFormat.format(Date())
val logLine = "[$timestamp] $message"
// Только Logcat - быстро и не блокирует UI
Log.d(TAG, logLine)
// UI логи отключены по умолчанию - вызывали ANR из-за перекомпозиций
if (uiLogsEnabled) {