From bf7cb081f4b36372ada64d9cd0168f8829d6684a Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 26 Mar 2020 13:08:06 +0000 Subject: [PATCH] fix server logging (#1417) --- grpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc.go b/grpc.go index af71aa5..2b0dc91 100644 --- a/grpc.go +++ b/grpc.go @@ -830,7 +830,7 @@ func (g *grpcServer) Start() error { // announce self to the world if err := g.Register(); err != nil { if logger.V(logger.ErrorLevel, logger.DefaultLogger) { - logger.Errorf("Server register error: ", err) + logger.Errorf("Server register error: %v", err) } } @@ -838,7 +838,7 @@ func (g *grpcServer) Start() error { go func() { if err := g.srv.Serve(ts); err != nil { if logger.V(logger.ErrorLevel, logger.DefaultLogger) { - logger.Errorf("gRPC Server start error: ", err) + logger.Errorf("gRPC Server start error: %v", err) } } }()