Add psks to debug for user
@@ -931,9 +931,14 @@ impl<T> Debug for User<T> {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(
f,
- "\n* identifier: <{}>\n{:?}\n* messages:\n{}\n",
+ "\n* identifier: <{}>\n{:?}\n* PSKs: \n{}\n* messages:\n{}\n",
self.identifier(),
self.state.id_store,
+ self.state
+ .psk_store
+ .keys()
+ .map(|pskid| format!("\t<{:?}>\n", pskid))
+ .collect::<String>(),
self.state
.spongos_store
.keys()
