-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Slog #185
Migrate to Slog #185
Conversation
rebased |
Blocked on landing #184 |
rebased again |
90f101a
to
361b15c
Compare
@nrc There is a lot of merge conflicts, do you think you could address them? |
37bfe5d
to
82aba5c
Compare
I've rebased and addressed some of the easier review comments (finally, sorry it took so long). I'll address the other comments tomorrow. |
a033606
to
501478d
Compare
All comments addressed. @Hoverbear PTAL |
54e70d8
to
cb087cb
Compare
@Hoverbear I changed the API as we discussed and the default logger to be sync. PTAL |
Comment addressed and rebased |
Signed-off-by: Nick Cameron <nrc@ncameron.org>
Signed-off-by: Nick Cameron <nrc@ncameron.org>
Reduces duplication in log messages, avoids `format!("{:?}", ...)`, and makes logging more idiomatic. Signed-off-by: Nick Cameron <nrc@ncameron.org>
I've improved the logging strings to eliminate some duplication. I doubt things are perfect, but since we need to fix the messages on an individual basis, I think I've hit a reasonable point of diminishing returns |
msg_index = m.index, | ||
term = self.term; | ||
"tag" => &self.tag, | ||
"msg type" => ?m.msg_type(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@breeswish Does this naming style seem ok with you? (spaces in the slog values)
Co-Authored-By: Ana Hobden <operator@hoverbear.org> Signed-off-by: Nick Cameron <nrc@ncameron.org>
@breeswish PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
Rebased version of #52, based on top of #184