Skip to content

watchtower/wtclient: add prefix logging#4885

Merged
Roasbeef merged 4 commits into
lightningnetwork:masterfrom
cfromknecht:wtwr-logging
Jan 5, 2021
Merged

watchtower/wtclient: add prefix logging#4885
Roasbeef merged 4 commits into
lightningnetwork:masterfrom
cfromknecht:wtwr-logging

Conversation

@cfromknecht
Copy link
Copy Markdown
Contributor

Follow up from #4782, adds the (legacy) or (anchor) prefix to logs output by the individual sub-clients

Copy link
Copy Markdown
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

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

LGTM, just one small nit.

The backup_task.go file also has a call to the package-level log variable on line #205. But that contains the anchor bool in the message itself so it's probably not worth adding a prefix logger just for that single line.

Comment thread watchtower/wtclient/client.go Outdated
@cfromknecht
Copy link
Copy Markdown
Contributor Author

probably not worth adding a prefix logger just for that single line.

yeah this was also my thinking. that log should never execute anyway 👌

@guggero
Copy link
Copy Markdown
Collaborator

guggero commented Jan 5, 2021

PR is good to go IMO. Do we want this for RC4?

@cfromknecht
Copy link
Copy Markdown
Contributor Author

@guggero yes i think so, otherwise it will be difficult to debug watchtower logs in 0.12+

@cfromknecht cfromknecht added this to the 0.12.0 milestone Jan 5, 2021
@Roasbeef Roasbeef merged commit fbb3e40 into lightningnetwork:master Jan 5, 2021
@cfromknecht cfromknecht deleted the wtwr-logging branch January 5, 2021 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants