From 44b77a8ef9e4f5e31afd5a8b9e244b91633b4019 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 9 Aug 2017 21:03:12 +0200 Subject: [PATCH] rpc: always log goodbye --- rpc/rpc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpc/rpc.go b/rpc/rpc.go index 9852545..99e045c 100644 --- a/rpc/rpc.go +++ b/rpc/rpc.go @@ -166,9 +166,7 @@ func (c ByteStreamRPC) serverLoop(handler RPCHandler) error { return conn.Close() } - if rq.Goodbye != "" { - log.Printf("close request with goodbye: %s", rq.Goodbye) - } + log.Printf("close request with goodbye: %s", rq.Goodbye) send(&ResponseHeader{ RequestId: header.Id,