fix server logging (#1417)
This commit is contained in:
parent
02839cfba5
commit
7182ca1fd0
@ -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)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user