From e57aa52ca6ee4375e2a5bfd646241edbf47faa0e Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Thu, 7 Jun 2018 10:19:23 +0100 Subject: [PATCH] Warn about killing proxies in dev mode --- agent/agent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/agent.go b/agent/agent.go index 6bac3eb9a6..f71e811d16 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1324,6 +1324,8 @@ func (a *Agent) ShutdownAgent() error { // don't leave the proxies running since the agent will not be able to // recover them later. if a.config.DataDir == "" { + a.logger.Printf("[WARN] agent: dev mode disabled persistence, killing " + + "all proxies since we can't recover them") if err := a.proxyManager.Kill(); err != nil { a.logger.Printf("[WARN] agent: error shutting down proxy manager: %s", err) }