fix(desktop): remove noisy debug logs and silence SLF4J warnings
Remove feedSub/contactList debug prints from FeedScreen, suppress GiftWrapEvent decryption failure log (expected for others' wraps), and add slf4j-nop to silence "No SLF4J providers" console warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,9 @@ dependencies {
|
|||||||
// Collections
|
// Collections
|
||||||
implementation(libs.kotlinx.collections.immutable)
|
implementation(libs.kotlinx.collections.immutable)
|
||||||
|
|
||||||
|
// SLF4J no-op — silence "No SLF4J providers" warnings from transitive deps
|
||||||
|
implementation("org.slf4j:slf4j-nop:2.0.16")
|
||||||
|
|
||||||
// QR code generation (ZXing core)
|
// QR code generation (ZXing core)
|
||||||
implementation(libs.zxing)
|
implementation(libs.zxing)
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ import androidx.compose.ui.unit.dp
|
|||||||
import com.vitorpamplona.amethyst.commons.state.EventCollectionState
|
import com.vitorpamplona.amethyst.commons.state.EventCollectionState
|
||||||
import com.vitorpamplona.amethyst.commons.ui.components.EmptyState
|
import com.vitorpamplona.amethyst.commons.ui.components.EmptyState
|
||||||
import com.vitorpamplona.amethyst.commons.ui.components.LoadingState
|
import com.vitorpamplona.amethyst.commons.ui.components.LoadingState
|
||||||
import com.vitorpamplona.amethyst.desktop.DebugConfig
|
|
||||||
import com.vitorpamplona.amethyst.desktop.DesktopPreferences
|
import com.vitorpamplona.amethyst.desktop.DesktopPreferences
|
||||||
import com.vitorpamplona.amethyst.desktop.account.AccountState
|
import com.vitorpamplona.amethyst.desktop.account.AccountState
|
||||||
import com.vitorpamplona.amethyst.desktop.cache.DesktopLocalCache
|
import com.vitorpamplona.amethyst.desktop.cache.DesktopLocalCache
|
||||||
@@ -208,7 +207,6 @@ fun FeedScreen(
|
|||||||
onEvent = { event, _, relay, _ ->
|
onEvent = { event, _, relay, _ ->
|
||||||
if (event is ContactListEvent) {
|
if (event is ContactListEvent) {
|
||||||
val follows = event.verifiedFollowKeySet()
|
val follows = event.verifiedFollowKeySet()
|
||||||
DebugConfig.log("contactList: ${follows.size} follows from $relay")
|
|
||||||
followedUsers = follows
|
followedUsers = follows
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -260,7 +258,6 @@ fun FeedScreen(
|
|||||||
|
|
||||||
// Subscribe to feed based on mode
|
// Subscribe to feed based on mode
|
||||||
rememberSubscription(configuredRelays, feedMode, followedUsers, relayManager = relayManager) {
|
rememberSubscription(configuredRelays, feedMode, followedUsers, relayManager = relayManager) {
|
||||||
DebugConfig.log("feedSub: mode=$feedMode, relays=${configuredRelays.size}, followedUsers=${followedUsers.size}")
|
|
||||||
if (configuredRelays.isEmpty()) {
|
if (configuredRelays.isEmpty()) {
|
||||||
return@rememberSubscription null
|
return@rememberSubscription null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user