   (:use [org.apache.storm config daemon-config util log])
   (:use [org.apache.storm.ui helpers])
   (:import [org.apache.storm StormTimer]
+           [org.apache.storm.daemon.supervisor ClientSupervisorUtils]
            [org.apache.storm.daemon.supervisor SupervisorUtils]
            [org.apache.storm.metric StormMetricsRegistry])
   (:import [org.apache.storm.utils Time VersionInfo ConfigUtils Utils ServerUtils ServerConfigUtils])

                          pager-data)))))
      (-> (resp/response "Page not found")
          (resp/status 404)))))

(defnk download-log-file [fname req resp user ^String root-dir :is-daemon false]
  (let [file (.getCanonicalFile (File. root-dir fname))]

            start (if (:start m) (parse-long-from-map m :start))
            length (if (:length m) (parse-long-from-map m :length))
            file (URLDecoder/decode (:file m))]
        (set-log-file-permissions file log-root)
        (log-template (log-page file start length (:grep m) user log-root)
          file user))
      (catch InvalidRequestException ex
