mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 20:36:45 +01:00
Improves logs when the UserMetadata cannot be parsed
This commit is contained in:
@@ -152,7 +152,7 @@ class AppDefinitionEvent(
|
|||||||
newMetadata
|
newMetadata
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
Log.w("MT", "Content Parse Error ${e.localizedMessage} $content")
|
Log.w("AppDefinitionEvent", "Content Parse Error: ${toNostrUri()} ${e.localizedMessage}")
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class MetadataEvent(
|
|||||||
mapper.readValue(content, UserMetadata::class.java)
|
mapper.readValue(content, UserMetadata::class.java)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
// e.printStackTrace()
|
// e.printStackTrace()
|
||||||
Log.w("MT", "Content Parse Error: ${e.localizedMessage} $content")
|
Log.w("MetadataEvent", "Content Parse Error: ${toNostrUri()} ${e.localizedMessage}")
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user