Skip to content

Use go-kit log.NewStdlibAdapter instead of our own adapter#587

Merged
rata merged 1 commit into
metallb:mainfrom
champtar:memberlistlog
Apr 28, 2020
Merged

Use go-kit log.NewStdlibAdapter instead of our own adapter#587
rata merged 1 commit into
metallb:mainfrom
champtar:memberlistlog

Conversation

@champtar

Copy link
Copy Markdown
Contributor

New log looks like:
{"caller":"net.go:785","component":"MemberList","msg":"[DEBUG] memberlist: Initiating push/pull sync with: 10.11.12.13:7946","ts":"2020-04-17T00:31:37.51568936Z"}

@champtar

Copy link
Copy Markdown
Contributor Author

@rata this PR was tested ;)

@rata

rata commented Apr 19, 2020

Copy link
Copy Markdown
Contributor

@champtar thanks! I guess the caller field is not very useful? Is it the file in the memberlist code?

Can you please add in the commit message too how the output looked before this patch too?

Other than that, LGTM. But please, if you think it makes sense too, add how the logs looked like before this patch :)

@champtar

champtar commented Apr 20, 2020

Copy link
Copy Markdown
Contributor Author

caller is the file/line in the memberlist code yes (StdlibAdapter is doing some parsing), I can remove it (golog.Lshortfile)
I'll add the previous output to the commit message

@rata

rata commented Apr 24, 2020

Copy link
Copy Markdown
Contributor

Don't hesitate to ping me when ready :)

@champtar

Copy link
Copy Markdown
Contributor Author

crazy week, I did lot of progress on many subjects, but not on MetalLB :(

@rata

rata commented Apr 25, 2020

Copy link
Copy Markdown
Contributor

@champtar heh, it happens to all of us. Just wanted to make sure there wasn't a deadlock (you waiting for me, me waiting for you) :)

Old log:
{"caller":"main.go:202","component":"MemberList","msg":"net.go:785: [DEBUG] memberlist: Initiating push/pull sync with: 10.11.12.13:7946","ts":"2020-04-17T00:31:37.51568936Z"}
New log:
{"caller":"net.go:785","component":"MemberList","msg":"[DEBUG] memberlist: Initiating push/pull sync with: 10.11.12.13:7946","ts":"2020-04-17T00:31:37.51568936Z"}

"caller" now references Memberlist code

Signed-off-by: Etienne Champetier <echampetier@anevia.com>
@champtar

Copy link
Copy Markdown
Contributor Author

@rata done, please review and merge

@rata rata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

@rata rata merged commit 734ee67 into metallb:main Apr 28, 2020
@champtar champtar deleted the memberlistlog branch October 2, 2020 21:50
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.

2 participants