Improves logs when the UserMetadata cannot be parsed

This commit is contained in:
Vitor Pamplona 2024-08-21 14:38:17 -04:00
parent f646866192
commit d4da58e14a
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class AppDefinitionEvent(
newMetadata
} catch (e: Exception) {
e.printStackTrace()
Log.w("MT", "Content Parse Error ${e.localizedMessage} $content")
Log.w("AppDefinitionEvent", "Content Parse Error: ${toNostrUri()} ${e.localizedMessage}")
null
}
}

View File

@ -157,7 +157,7 @@ class MetadataEvent(
mapper.readValue(content, UserMetadata::class.java)
} catch (e: Exception) {
// e.printStackTrace()
Log.w("MT", "Content Parse Error: ${e.localizedMessage} $content")
Log.w("MetadataEvent", "Content Parse Error: ${toNostrUri()} ${e.localizedMessage}")
null
}