fix: optimization of Serve in server/server.go
fix: resolved the issue of the Serve() method causing the program to hang indefinitely through graceful_shutdown #3042
nice!
现在有很多携程会监听shutdown信号,在shutdown的时候都会输出log,能不能把这些输出的log 文字统一一下
2025-12-04 10:47:38 INFO graceful_shutdown/shutdown.go:90 get signal interrupt, applicationConfig will shutdown.
2025-12-04 10:47:38 INFO server/server.go:226 Received signal: interrupt, server is shutting down gracefully
2025-12-04 10:47:38 INFO graceful_shutdown/shutdown.go:148 Graceful shutdown --- Destroy all registriesConfig.
2025-12-04 10:47:38 INFO cmd/server.go:132 Received signal: interrupt, shutting down...
all right!
Codecov Report
:x: Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 37.06%. Comparing base (1a7b169) to head (0325d18).
:warning: Report is 18 commits behind head on develop.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| graceful_shutdown/shutdown.go | 0.00% | 17 Missing :warning: |
| server/server.go | 0.00% | 16 Missing :warning: |
| config/graceful_shutdown.go | 0.00% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## develop #3099 +/- ##
===========================================
- Coverage 39.64% 37.06% -2.58%
===========================================
Files 457 460 +3
Lines 39075 32984 -6091
===========================================
- Hits 15493 12227 -3266
+ Misses 22318 19531 -2787
+ Partials 1264 1226 -38
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
pls fix copilot comments
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code