[#49] Use zap.Logger in neofs-storage

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-25 15:34:17 +03:00
parent 2fc2f8792e
commit 1a169a1a9d
2 changed files with 25 additions and 2 deletions

View file

@ -2,7 +2,6 @@ package main
import (
"flag"
"fmt"
"log"
"github.com/nspcc-dev/neofs-node/pkg/util/grace"
@ -46,12 +45,15 @@ func bootUp(c *cfg) {
}
func wait(c *cfg) {
c.log.Info("application started")
<-c.ctx.Done()
}
func shutdown(c *cfg) {
c.cfgGRPC.server.GracefulStop()
fmt.Println("gRPC server stopped")
c.log.Info("gRPC server stopped")
c.wg.Wait()
}