From bab7c8292b29074c8987cbf7bd7abf1cbcfc204b Mon Sep 17 00:00:00 2001 From: Diego Ciangottini Date: Mon, 30 Oct 2023 23:04:43 +0100 Subject: [PATCH] getlogs fix --- pkg/sidecars/slurm/GetLogs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sidecars/slurm/GetLogs.go b/pkg/sidecars/slurm/GetLogs.go index 8aa7444a..702381d6 100644 --- a/pkg/sidecars/slurm/GetLogs.go +++ b/pkg/sidecars/slurm/GetLogs.go @@ -45,7 +45,8 @@ func GetLogsHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(statusCode) return } else { - cmd = OSexec.Command("cat", "slurm-"+req.PodUID+"_*") + log.G(Ctx).Info("Reading") + cmd = OSexec.Command("cat", ".tmp/"+req.PodUID+"_*") } output, err := cmd.CombinedOutput()