From 919477ffe463f8c0331c8f29c49ea8e9f989b4e8 Mon Sep 17 00:00:00 2001 From: Alex Last Date: Sat, 16 Dec 2023 06:25:02 +0000 Subject: [PATCH] fix(servicegroup): use logx for shutdown message (#3719) --- core/service/servicegroup.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/service/servicegroup.go b/core/service/servicegroup.go index 27ec45ad..c8b0715a 100644 --- a/core/service/servicegroup.go +++ b/core/service/servicegroup.go @@ -1,8 +1,7 @@ package service import ( - "log" - + "github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/proc" "github.com/zeromicro/go-zero/core/syncx" "github.com/zeromicro/go-zero/core/threading" @@ -51,7 +50,7 @@ func (sg *ServiceGroup) Add(service Service) { // Also, quitting this method will close the logx output. func (sg *ServiceGroup) Start() { proc.AddShutdownListener(func() { - log.Println("Shutting down...") + logx.Info("Shutting down service in group") sg.stopOnce() })