Warn about killing proxies in dev mode

This commit is contained in:
Paul Banks 2018-06-07 10:19:23 +01:00 committed by Jack Pearkes
parent 71216631d7
commit e57aa52ca6
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}