rpc/dataconn: fix log message in closeErr case

refs #457
This commit is contained in:
Christian Schwarz 2021-09-19 18:40:39 +02:00
parent 8fee536260
commit 936ed73a45

View File

@ -241,7 +241,7 @@ func (s *Server) serveConnRequest(ctx context.Context, endpoint string, c *strea
err := c.SendStream(ctx, sendStream, ZFSStream) err := c.SendStream(ctx, sendStream, ZFSStream)
closeErr := sendStream.Close() closeErr := sendStream.Close()
if closeErr != nil { if closeErr != nil {
s.log.WithError(err).Error("cannot close send stream") s.log.WithError(closeErr).Error("cannot close send stream")
} }
if err != nil { if err != nil {
s.log.WithError(err).Error("cannot write send stream") s.log.WithError(err).Error("cannot write send stream")