Ignore log.Sync() error

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-08 21:13:22 +02:00
parent ebecca64a1
commit 68081a7a1f
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -78,7 +78,7 @@ func serveRPC(a api.FullNode, stop node.StopFunc, addr multiaddr.Multiaddr, shut
log.Errorf("graceful shutting down failed: %s", err)
}
log.Warn("Graceful shutdown successful")
log.Sync()
_ = log.Sync() //nolint:errcheck
close(shutdownDone)
}()
signal.Notify(sigCh, syscall.SIGTERM, syscall.SIGINT)