We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b61ef commit d81723fCopy full SHA for d81723f
1 file changed
pkg/mcp-proxy/main.go
@@ -187,8 +187,12 @@ func Run(
187
err := <-errCh
188
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 5*time.Second)
189
defer shutdownCancel()
190
- _ = httpServer.Shutdown(shutdownCtx)
191
- _ = httpsServer.Shutdown(shutdownCtx)
+ if shutdownErr := httpServer.Shutdown(shutdownCtx); shutdownErr != nil {
+ logger.Warn("HTTP server shutdown error", zap.Error(shutdownErr))
192
+ }
193
+ if shutdownErr := httpsServer.Shutdown(shutdownCtx); shutdownErr != nil {
194
+ logger.Warn("HTTPS server shutdown error", zap.Error(shutdownErr))
195
196
return err
197
} else {
198
logger.Info("Starting server", zap.String("listen", listen))
0 commit comments