-
Notifications
You must be signed in to change notification settings - Fork 108
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
Logging improvements #929
Logging improvements #929
Conversation
Notice I'm not sure I've covered all cases when resharing happens, espcially in the case of an existing node. See: Lines 232 to 244 in d9099c9
I might need to adjust to use the proper prefixes in the The index has a good chance to change, as far as I understand it, but I'm not sure about the other things such as the address or the beacon_id, I don't think so. |
Seems I have triggered some race conditions on our loggers, probably because the DefaultLogger seems to be a unique, global logger, and I might need to create new loggers instead of copying that one around. |
That's correct. |
I think your idea @nikkolasg to have an event signalling the transition might be nice, but I couldn't get around the race conditions in the loggers if I let the logger change while go routines relying on the former logger still exist. So I'm doing the index changes "a bit too early" right now, instead of doing them at the time the transition occurs. |
I see this pr removing the |
It's added to all logs using Named now. So a Named logger is e.g.: |
So, contrarily to the initial message in this PR, the logs now looks like this:
|
note that changing to logging format are breaking changes, because we need all members to update how they're parsing logs to handle the new format. |
@willscott In any case we are breaking the log format with master by moving from Kit logger to Zap. Here is how the Kit logger currently logs things:
|
Before:
After: