You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have explicit spots in the log Record struct for peer id and channel id (both id and user_id, I think) and fill them in as needed. Would make the logs much more structured and ensure we dont forget to include them.
do have a couple of quick questions/confirmations here for peer_id are we looking to do the u8 one? which sounds like it's the index of the current peer list 0-255 (CMIIW) channel_id is the channel id [u8;32] and not the scid(short channel id)
No peer_id in the form of a PublicKey, as that's understandable for users. channel_id I think we should do the [u8;32] as we always have one whereas the SCID we'd have to decide between the aliases and figure out what to do pre-funding-confirmation (eg for 0conf).
Activity
TheBlueMatt commentedon May 12, 2023
Good first issue though the patch may be huge, but should be straightforward.
[-]Add channel id/peer id to logs[/-][+]Add channel id/peer id to Logger's `Record`[/+]henghonglee commentedon May 16, 2023
Hi, @TheBlueMatt I can work on this task.
henghonglee commentedon May 16, 2023
do have a couple of quick questions/confirmations here for
peer_idare we looking to do theu8one? which sounds like it's the index of the current peer list 0-255 (CMIIW)channel_idis the channel id[u8;32]and not the scid(short channel id)TheBlueMatt commentedon May 21, 2023
No
peer_idin the form of aPublicKey, as that's understandable for users.channel_idI think we should do the[u8;32]as we always have one whereas the SCID we'd have to decide between the aliases and figure out what to do pre-funding-confirmation (eg for 0conf).henghonglee commentedon May 25, 2023
Hi @TheBlueMatt, this one is ready to be reviewed