From 1df74e36bd7f669f237ddc7c9f3e48db7ee33a03 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Tue, 23 May 2017 12:15:25 +0200 Subject: [PATCH] agent: print more useful shutdown message --- command/agent/agent.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/command/agent/agent.go b/command/agent/agent.go index 5a73de636e..f315b56729 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -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()