mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
client.rpc: don't log errors on shutdown
This commit is contained in:
@@ -71,6 +71,13 @@ TRY:
|
||||
return nil
|
||||
}
|
||||
|
||||
// If shutting down, exit without logging the error
|
||||
select {
|
||||
case <-c.shutdownCh:
|
||||
return nil
|
||||
default:
|
||||
}
|
||||
|
||||
// Move off to another server, and see if we can retry.
|
||||
c.rpcLogger.Error("error performing RPC to server", "error", rpcErr, "rpc", method, "server", server.Addr)
|
||||
c.servers.NotifyFailedServer(server)
|
||||
|
||||
Reference in New Issue
Block a user