From 7da77302f458800d2e0785278ea417e2140578be Mon Sep 17 00:00:00 2001 From: "Zhang.Y" Date: Wed, 29 Jun 2022 21:35:01 +0800 Subject: [PATCH] fix: `\u003cnil\u003e` log output when http server shutdown. (#2055) --- rest/internal/starter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/internal/starter.go b/rest/internal/starter.go index 0f45f989..56198380 100644 --- a/rest/internal/starter.go +++ b/rest/internal/starter.go @@ -39,7 +39,7 @@ func start(host string, port int, handler http.Handler, run func(svr *http.Serve } waitForCalled := proc.AddWrapUpListener(func() { - if e := server.Shutdown(context.Background()); err != nil { + if e := server.Shutdown(context.Background()); e != nil { logx.Error(e) } })