-
Notifications
You must be signed in to change notification settings - Fork 66
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
Feat/improve log #322
Feat/improve log #322
Conversation
When I start the node, I expect all Maybe we should treat all the same and redact what is sensitive data. Also, why these 2 first lines are different from the following?
|
Also the logs should not print senstitve data like
It prints the key_id :
|
I'm not sure how sensitive the kms key id is here, but I know it's essential for debugging and auditing. |
This and #319 will be rebased on top of #318 after it is merged, so they'll be gone 😉 |
They're currently looking like this (in a local branch):
@endersonmaia The only change I'm still planning is to change |
Ok, keep in mind that now, the log is like this: And since we don't have log level prefix anywhere, it was hard to find the error (I usually filter for
If I got you idea right, you'll put all the config log in a single line, right? I'd just ask that, if any error is found in any configuration, that we get a single line for it. And, if we can parse all the config before, and show all the errors, it would be even better. So that I don't get into the loop of fixing one error, and getting another "new" one after the next time I start the Tell me if you need me to create issues instead of just commenting here. |
@endersonmaia Got it.
Yeah, this would be better. We were already discussing how to approach config validation, so your input is valuable.
The context is the same, so there's no need for new issues. I'll include these modifications here as soon as possible. Thanks for the feedback 😉 |
I just noticed the datetime lack of pattern:
I suggest stick to ISO 8061 ( |
@endersonmaia Would RFC3339 |
Can we remove the timezone and get subseconds? If yes, I'm ok with it. |
@endersonmaia we do get milliseconds, but to remove the timezone I would have to write a custom log handler to match the format between the default and pretty log styles (yep, it sucks). That's something that I very much would like to avoid. |
0a0ac5a
to
7fa61b9
Compare
Maybe it gets this configuration from the OS timezone configuration? If we understand how this works, we can control its behavior. |
Got a better solution: not using the default logger. I'll have full control over the time format and the only difference is that now |
f6ef4cc
to
efd1de0
Compare
efd1de0
to
bcd9007
Compare
29ffdb5
to
21dcb75
Compare
21dcb75
to
04eac91
Compare
39f9467
to
04eac91
Compare
04eac91
to
d876767
Compare
d876767
to
00d2a05
Compare
Uses RFC3339 with milliseconds and without timezone
00d2a05
to
1321290
Compare
Closes #308.