fix: use global logger for threadWatcher#41395
fix: use global logger for threadWatcher#41395HurSungYun wants to merge 1 commit intomilvus-io:masterfrom
Conversation
Signed-off-by: lambert <lambert@daangn.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: HurSungYun The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@HurSungYun Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (72.63%) is below the target coverage (77.00%). You can increase the head coverage or adjust the target coverage.
Additional details and impacted files@@ Coverage Diff @@
## master #41395 +/- ##
===========================================
- Coverage 80.60% 72.63% -7.97%
===========================================
Files 1478 312 -1166
Lines 210192 29045 -181147
===========================================
- Hits 169426 21098 -148328
+ Misses 34631 7947 -26684
+ Partials 6135 0 -6135
🚀 New features to boost your workflow:
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@yanliang567 @zwd1208 can you please review this PR? Thank you in advance. |
|
/assign @LoveEachDay |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@LoveEachDay can you please help me whenever you have some time? |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Currently,
thread watcher observe thread numlogmilvus/internal/util/metrics/thread.go
Line 76 in c43f8f7
is not affected by log level config.
I believe this is because of the initialization order.
milvus/cmd/roles/roles.go
Lines 313 to 316 in c43f8f7
milvus/cmd/roles/roles.go
Line 385 in c43f8f7
In my case,
thread watcher observe thread numlog (it's debug level) is written even if I set my log level toWARN. It's kinda annoying for who operates Milvus.Thus, I would like to suggest to use the global logger for Threadwatcher instead of a local one, to be affected by the config.