Skip to content

Commit

Permalink
update engine log with num of eventloop
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Feb 17, 2024
1 parent 36a2da1 commit 3cdf213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ func (g *Engine) Start() error {
}

if len(g.Addrs) == 0 {
logging.Info("NBIO Engine[%v] start", g.Name)
logging.Info("NBIO Engine[%v] start with [%v eventloop]", g.Name, g.NPoller)
} else {
logging.Info("NBIO Engine[%v] start listen on: [\"%v@%v\"]", g.Name, g.Network, strings.Join(g.Addrs, `", "`))
logging.Info("NBIO Engine[%v] start with [%v eventloop], listen on: [\"%v@%v\"]", g.Name, g.NPoller, g.Network, strings.Join(g.Addrs, `", "`))
}

return nil
Expand Down

0 comments on commit 3cdf213

Please sign in to comment.