Warn about killing proxies in dev mode
This commit is contained in:
parent
7e796fd07b
commit
d0674cdd7a
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue