Simplifying logs

This commit is contained in:
Vitor Pamplona
2023-03-02 09:33:19 -05:00
parent 3521497cf8
commit 10ce5a984e
2 changed files with 4 additions and 5 deletions

View File

@@ -276,9 +276,8 @@ object LocalCache {
val pubKey = decodePublicKey(it.pubKeyHex) val pubKey = decodePublicKey(it.pubKeyHex)
getOrCreateUser(pubKey.toHexKey()) getOrCreateUser(pubKey.toHexKey())
} catch (e: Exception) { } catch (e: Exception) {
println("Could not parse Hex key: ${it.pubKeyHex}") Log.w("ContactList Parser", "Ignoring: Could not parse Hex key: ${it.pubKeyHex} in ${event.toJson()}")
println("UpdateFollows: " + event.toJson()) //e.printStackTrace()
e.printStackTrace()
null null
} }
}.filterNotNull().toSet(), }.filterNotNull().toSet(),

View File

@@ -36,8 +36,8 @@ class Nip19 {
} }
} }
} catch (e: Throwable) { } catch (e: Throwable) {
println("Trying to Decode NIP19: ${uri}") println("Issue trying to Decode NIP19 ${uri}: ${e.message}")
e.printStackTrace() //e.printStackTrace()
} }
return null return null