fix: don't log and exit on graceful shutdown timeout
1 file changed, 2 insertions(+), 1 deletion(-)
changed files
M cmd/searchix-web/main.go → cmd/searchix-web/main.go
@@ -2,6 +2,7 @@ package main import ( "context" + "errors" "flag" "fmt" "os"@@ -147,7 +148,7 @@ wg.Add(1) go func() { defer wg.Done() err := s.Start(*dev) - if err != nil { + if err != nil && !errors.Is(err, context.Canceled) { // Error starting or closing listener: logger.Fatal("error", "error", err) }