mirror of https://github.com/status-im/consul.git
agent: print more useful shutdown message
This commit is contained in:
parent
f15e90bc9a
commit
1df74e36bd
|
@ -1015,7 +1015,11 @@ func (a *Agent) Shutdown() error {
|
|||
var err error
|
||||
if a.delegate != nil {
|
||||
err = a.delegate.Shutdown()
|
||||
a.logger.Print("[DEBUG] agent: delegate down")
|
||||
if _, ok := a.delegate.(*consul.Server); ok {
|
||||
a.logger.Print("[INFO] agent: consul server down")
|
||||
} else {
|
||||
a.logger.Print("[INFO] agent: consul client down")
|
||||
}
|
||||
}
|
||||
|
||||
pidErr := a.deletePid()
|
||||
|
|
Loading…
Reference in New Issue