diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index 85138e1017..b2bcd2daf8 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -3651,7 +3651,8 @@ class Account( } catch (e: Exception) { Log.w( "Account", - "Failed to restore persisted Marmot message for $groupId: ${e.message}", + "Failed to restore persisted Marmot message for $groupId", + e, ) } } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt index 81b4080ce8..ff7f498420 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt @@ -2276,20 +2276,18 @@ object LocalCache : ILocalCache, ICacheProvider { // the wallet service we sent the request to. The pending // entry is left in place so the real response can still // resolve it; we silently drop this one. - Log.w( - "LocalCache", + Log.w("LocalCache") { "Rejecting NWC response ${event.id}: expected author ${match.expected} but event was signed by ${match.actual}. " + - "This may be a spoofed reply — keeping the request pending for the legitimate wallet response.", - ) + "This may be a spoofed reply — keeping the request pending for the legitimate wallet response." + } return false } NwcPaymentTracker.MatchResult.NoMatch -> { - Log.w( - "LocalCache", + Log.w("LocalCache") { "NWC response ${event.id} from ${event.pubKey} references request e=$requestId but no pending request is registered. " + - "The response was either delivered after timeout, the user holds a stale subscription, or the wallet service set the wrong e tag.", - ) + "The response was either delivered after timeout, the user holds a stale subscription, or the wallet service set the wrong e tag." + } return false } } diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip72ModCommunities/approval/CommunityPostApprovalEvent.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip72ModCommunities/approval/CommunityPostApprovalEvent.kt index 6bc2f2b15f..a3eadc1b3f 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip72ModCommunities/approval/CommunityPostApprovalEvent.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip72ModCommunities/approval/CommunityPostApprovalEvent.kt @@ -76,6 +76,7 @@ class CommunityPostApprovalEvent( Log.w( "CommunityPostEvent", "Failed to Parse Community Approval Contained Post of $id with $content", + e, ) null }