]> git.bitcoin.ninja Git - rust-lightning/commit
Use `{}`, not `{:?}` for `PublicKey` logging
authorMatt Corallo <git@bluematt.me>
Tue, 6 Feb 2024 23:13:08 +0000 (23:13 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 13 Mar 2024 13:58:47 +0000 (13:58 +0000)
commit98340dc25371eeae2854bebf6ac0f4faba0d2830
tree7ef774c0eef72f297f62557880e4a49ceabb2021
parentaa334d57532fba574ae2db6f94f980982d58d395
Use `{}`, not `{:?}` for `PublicKey` logging

The `Debug` serialization of `PublicKey`s includes both the X and Y
coordinate, which isn't something most of our users deal with.
Instead, logging using `Display` gives users the keys they're used
to.
lightning/src/onion_message/messenger.rs