From 68081a7a1f5854f45803c0eb3d442171b4e04fb6 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 8 Jul 2020 21:13:22 +0200 Subject: [PATCH] Ignore log.Sync() error Signed-off-by: Jakub Sztandera --- cmd/lotus/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus/rpc.go b/cmd/lotus/rpc.go index c7a242f8e..8e3517d62 100644 --- a/cmd/lotus/rpc.go +++ b/cmd/lotus/rpc.go @@ -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)