Skip to content

Commit

Permalink
fixup! Expand logging in case of embed server not being able to succe…
Browse files Browse the repository at this point in the history
…ssfully start.

Signed-off-by: Piotr Tabor <[email protected]>
  • Loading branch information
ptabor committed Jun 15, 2022
1 parent 6ea57a5 commit 0337e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/embed/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (sctx *serveCtx) serve(
if s.Cfg.EnableGRPCGateway {
gwmux, err = sctx.registerGateway([]grpc.DialOption{grpc.WithInsecure()})
if err != nil {
sctx.lg.Error("registerGateway failed:", zap.Error(err))
sctx.lg.Error("registerGateway failed", zap.Error(err))
return err
}
}
Expand Down Expand Up @@ -243,7 +243,7 @@ func (sctx *serveCtx) registerGateway(opts []grpc.DialOption) (*gw.ServeMux, err

conn, err := grpc.DialContext(ctx, addr, opts...)
if err != nil {
sctx.lg.Error("registerGateway failed to dial:", zap.String("addr", addr), zap.Error(err))
sctx.lg.Error("registerGateway failed to dial", zap.String("addr", addr), zap.Error(err))
return nil, err
}
gwmux := gw.NewServeMux()
Expand Down

0 comments on commit 0337e0d

Please sign in to comment.