diff --git a/main.go b/main.go index cf4cb198..d60f9765 100644 --- a/main.go +++ b/main.go @@ -275,11 +275,11 @@ func video(w http.ResponseWriter, r *http.Request) { return } user, remote := util.RequestInfo(r) - log.Printf("[%d] [LOG_LISTING] [%s] [%s]", requestId, user, remote) if _, ok := r.URL.Query()[jsonParam]; ok { listFilesAsJson(requestId, w, videoOutputDir, "VIDEO_ERROR") return } + log.Printf("[%d] [VIDEO_LISTING] [%s] [%s]", requestId, user, remote) fileServer := http.StripPrefix(paths.Video, http.FileServer(http.Dir(videoOutputDir))) fileServer.ServeHTTP(w, r) } diff --git a/selenoid.go b/selenoid.go index 20482f39..6242e8a6 100644 --- a/selenoid.go +++ b/selenoid.go @@ -594,11 +594,11 @@ func logs(w http.ResponseWriter, r *http.Request) { return } user, remote := util.RequestInfo(r) - log.Printf("[%d] [LOG_LISTING] [%s] [%s]", requestId, user, remote) if _, ok := r.URL.Query()[jsonParam]; ok { listFilesAsJson(requestId, w, logOutputDir, "LOG_ERROR") return } + log.Printf("[%d] [LOG_LISTING] [%s] [%s]", requestId, user, remote) fileServer := http.StripPrefix(paths.Logs, http.FileServer(http.Dir(logOutputDir))) fileServer.ServeHTTP(w, r) return