feat: Remove debug logging from various components for cleaner code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user