-
Notifications
You must be signed in to change notification settings - Fork 90
AAP-43201 netceptor logging #1300
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 8000 “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
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## devel #1300 +/- ##
==========================================
+ Coverage 43.72% 44.54% +0.82%
==========================================
Files 57 60 +3
Lines 9782 10423 +641
==========================================
+ Hits 4277 4643 +366
- Misses 5193 5465 +272
- Partials 312 315 +3
... and 5 files with indirect coverage changes
🚀 New features to boost your workflow:
|
c032714
to
7385357
Compare
We have some unit tests failing perhaps this needs a rebase? |
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.
Added two minor things that I've asked about inline. Overall looks good!
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.
Looks like this will be really helpful for us to review logs, so I'm excited to see it completed.
I did have a fair amount of feedback, let me know what you think!
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.
Thanks for addressing the feedback, nice improvements! I had a couple other thoughts, since I felt I could understand the changes better now 🥇. But nothing showstopping.
We'll see how the poll goes for how you decide to address the suffix type.
e3d7d8b
to
2fde0db
Compare
2fde0db
to
2cb8d2a
Compare
Co-authored-by: Dan Leehr <dleehr@users.noreply.github.com>
This reverts commit 8018527.
|
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.
lgtm
This PR is ready to review.
While it doesn't implement structured logging, it's organized in such a way as to make that easier to add in AAP-44416: Implement dynamic log level changes.
Note that additional diagnostics were added to identify existing connections with initial handshake errors, but does not remove them as that is a bug that is out of scope. See PR#1303 for details.
Note that several iterations later, we've decided to leave the logging in netceptor.go the way it is, just adding a few more log diagnostics and messages. The ability to add suffixes was added the logger with the addition of AddSuffix and UpdateSuffix to the logger itself. All future logs will contain what is in the log suffix.
Example output. See at 15:48:21 I stopped
hop
and restarted it a few seconds later.