From 659099026375a541575fb1f41ce86ddcb1af8fb1 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 23 Jan 2017 15:12:09 -0800 Subject: [PATCH] disallow follow --- command/agent/fs_endpoint.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command/agent/fs_endpoint.go b/command/agent/fs_endpoint.go index 101115534..48adb310e 100644 --- a/command/agent/fs_endpoint.go +++ b/command/agent/fs_endpoint.go @@ -740,6 +740,10 @@ func (s *HTTPServer) Logs(resp http.ResponseWriter, req *http.Request) (interfac if plain, err = strconv.ParseBool(plainStr); err != nil { return nil, fmt.Errorf("Failed to parse plain field to boolean: %v", err) } + + if plain { + follow = false + } } logType = q.Get("type")