diff --git a/command/agent/fs_endpoint.go b/command/agent/fs_endpoint.go index 638072f89..379d737e7 100644 --- a/command/agent/fs_endpoint.go +++ b/command/agent/fs_endpoint.go @@ -721,22 +721,16 @@ func (s *HTTPServer) Logs(resp http.ResponseWriter, req *http.Request) (interfac return nil, taskNotPresentErr } - followStr := q.Get("follow") - if followStr != "" { + if followStr := q.Get("follow"); followStr != "" { if follow, err = strconv.ParseBool(followStr); err != nil { return nil, fmt.Errorf("Failed to parse follow field to boolean: %v", err) } } - plainStr := q.Get("plain") - if plainStr != "" { + if plainStr := q.Get("plain"); plainStr != "" { 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") diff --git a/website/source/docs/http/client-fs.html.md b/website/source/docs/http/client-fs.html.md index 26d22e897..0c6c7140b 100644 --- a/website/source/docs/http/client-fs.html.md +++ b/website/source/docs/http/client-fs.html.md @@ -229,9 +229,8 @@ allocation was placed.