mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Formats log messages to be consistent.
This commit is contained in:
parent
eabf67a431
commit
014649abb1
@ -562,11 +562,11 @@ func (s *Server) Shutdown() error {
|
||||
s.raftLayer.Close()
|
||||
future := s.raft.Shutdown()
|
||||
if err := future.Error(); err != nil {
|
||||
s.logger.Printf("[WARN] consul: Error shutting down raft: %s", err)
|
||||
s.logger.Printf("[WARN] consul: error shutting down raft: %s", err)
|
||||
}
|
||||
if s.left && s.raftSafeFn != nil {
|
||||
if err := s.raftSafeFn(); err != nil {
|
||||
s.logger.Printf("[WARN] consul: Error safing raft: %s", err)
|
||||
s.logger.Printf("[WARN] consul: error safing raft: %s", err)
|
||||
}
|
||||
}
|
||||
if s.raftStore != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user