Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
log,server: add contextual log util & test it in conn.go #9548
What problem does this PR solve?
we often forgot to log connId in log content that make us hard to distinguish operations from different session, and manual log it in every log is duplicated.
What is changed and how it works?
it's harder to modify low layer module's log, because some of our
@@ Coverage Diff @@ ## master #9548 +/- ## ================================================ - Coverage 67.4009% 67.3699% -0.0311% ================================================ Files 374 374 Lines 78895 78921 +26 ================================================ - Hits 53176 53169 -7 - Misses 20966 20997 +31 - Partials 4753 4755 +2