Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

chore: add extra ldk debug logs #98

Merged
merged 6 commits into from
Mar 10, 2024
Merged

Conversation

rolznz
Copy link
Collaborator

@rolznz rolznz commented Mar 8, 2024

No description provided.

ldk.go Outdated
@@ -336,6 +337,8 @@ func (gs *LDKService) ListChannels(ctx context.Context) ([]lnclient.Channel, err

channels := []lnclient.Channel{}

gs.svc.Logger.Debugf("Channels: %+v", ldkChannels)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's always directly use JSON logging.

it is always a pain to do that later and structured logging just helps so much in searching and analyzing logs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, yes. The output is much better too as pointer fields in objects are stringified correctly. I fixed the ones in this PR, but made a separate issue because there are over 100 usages we need to fix.

https://github.com/getAlby/nostr-wallet-connect-next/issues/101

@rolznz rolznz merged commit 64f9698 into master Mar 10, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants