[#49] Use zap.Logger in neofs-storage
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
2fc2f8792e
commit
1a169a1a9d
2 changed files with 25 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue