Skip to content

Add channel id/peer id to Logger's Record #2292

Closed

Description

@TheBlueMatt

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.

Activity

  1. added this to the 0.1.1 milestone on May 12, 2023
  2. TheBlueMatt commented on May 12, 2023

    @TheBlueMatt
    CollaboratorAuthor

    Good first issue though the patch may be huge, but should be straightforward.

  3. changed the title [-]Add channel id/peer id to logs[/-] [+]Add channel id/peer id to Logger's `Record`[/+] on May 12, 2023
  4. henghonglee commented on May 16, 2023

    @henghonglee
    Contributor

    Hi, @TheBlueMatt I can work on this task.

  5. henghonglee commented on May 16, 2023

    @henghonglee
    Contributor

    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)

  6. TheBlueMatt commented on May 21, 2023

    @TheBlueMatt
    CollaboratorAuthor

    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).

  7. henghonglee commented on May 25, 2023

    @henghonglee
    Contributor

    Hi @TheBlueMatt, this one is ready to be reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions