Reduces the size of log messages

This commit is contained in:
Vitor Pamplona
2025-08-28 13:53:22 -04:00
parent c366384a83
commit 0dc18cc98c
2 changed files with 4 additions and 4 deletions
@@ -103,7 +103,7 @@ class NostrClient(
}.flowOn(Dispatchers.Default) }.flowOn(Dispatchers.Default)
.stateIn( .stateIn(
scope, scope,
SharingStarted.Companion.Eagerly, SharingStarted.Eagerly,
activeRequests.relays.value + activeCounts.relays.value + eventOutbox.relays.value, activeRequests.relays.value + activeCounts.relays.value + eventOutbox.relays.value,
) )
@@ -80,7 +80,7 @@ object Nip19Parser {
return type!! + key return type!! + key
} catch (e: Throwable) { } catch (e: Throwable) {
Log.e("NIP19 Parser", "Issue trying to Decode NIP19 $uri: ${e.message}", e) Log.e("NIP19 Parser", "Issue trying to Decode NIP19 $uri: ${e.message}")
} }
return null return null
@@ -103,7 +103,7 @@ object Nip19Parser {
return parseComponents(type, key, additionalChars.ifEmpty { null }) return parseComponents(type, key, additionalChars.ifEmpty { null })
} catch (e: Throwable) { } catch (e: Throwable) {
Log.e("NIP19 Parser", "Issue trying to Decode NIP19 $uri: ${e.message}", e) Log.e("NIP19 Parser", "Issue trying to Decode NIP19 $uri: ${e.message}")
} }
return null return null
@@ -132,7 +132,7 @@ object Nip19Parser {
ParseReturn(it, nip19, additionalChars) ParseReturn(it, nip19, additionalChars)
} }
} catch (e: Throwable) { } catch (e: Throwable) {
Log.w("NIP19 Parser", "Issue trying to Decode NIP19 $key: ${e.message}", e) Log.w("NIP19 Parser", "Issue trying to Decode NIP19 $key: ${e.message}")
null null
} }