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)
getOrCreateUser(pubKey.toHexKey())
} catch (e: Exception) {
println("Could not parse Hex key: ${it.pubKeyHex}")
println("UpdateFollows: " + event.toJson())
e.printStackTrace()
Log.w("ContactList Parser", "Ignoring: Could not parse Hex key: ${it.pubKeyHex} in ${event.toJson()}")
//e.printStackTrace()
null
}
}.filterNotNull().toSet(),

View File

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