Skip to content

Commit

Permalink
fix(servicegroup): use logx for shutdown message (#3719)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexLast authored Dec 16, 2023
1 parent 4003864 commit 919477f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/service/servicegroup.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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()
})

Expand Down

0 comments on commit 919477f

Please sign in to comment.