mirror of
https://github.com/linka-cloud/grpc.git
synced 2026-04-19 10:25:09 +00:00
fix(service): do not log nil error when service stop
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@@ -302,7 +302,7 @@ func (s *service) run() error {
|
||||
logger.C(s.opts.ctx).Warnf("received %v", sig)
|
||||
return s.Close()
|
||||
case err := <-errs:
|
||||
if !isMuxError(err) {
|
||||
if err != nil && !isMuxError(err) {
|
||||
logger.C(s.opts.ctx).Error(err)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user