Skip to content

Commit

Permalink
core/net/grpcutil: Don't crash the entire app if a gRPC connection er…
Browse files Browse the repository at this point in the history
…rors.

These connections can error if the server is shutting down. No need to crash the client.
  • Loading branch information
ben-clayton committed Oct 10, 2017
1 parent 2361e1a commit 80ac5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/net/grpcutil/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ToProducer(stream interface{}) event.Producer {
if errors.Cause(err) == io.EOF {
return nil
}
log.F(ctx, "%v", err)
log.E(ctx, "%v", err)
return nil
}
return m.Interface()
Expand Down

0 comments on commit 80ac5e6

Please sign in to comment.