From 58803784e41b95fc9988bf3ff3f15f879cdad630 Mon Sep 17 00:00:00 2001 From: antoinetran Date: Thu, 12 Dec 2024 17:27:36 +0100 Subject: [PATCH] formatted GetLogsFollowMode args --- pkg/slurm/GetLogs.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkg/slurm/GetLogs.go b/pkg/slurm/GetLogs.go index 5595ad0..390a1e8 100644 --- a/pkg/slurm/GetLogs.go +++ b/pkg/slurm/GetLogs.go @@ -24,7 +24,17 @@ import ( ) // Logs in follow mode (get logs until the death of the container) with "kubectl -f". -func (h *SidecarHandler) GetLogsFollowMode(spanCtx context.Context, podUid string, w http.ResponseWriter, r *http.Request, path string, req commonIL.LogStruct, containerOutputPath string, containerOutput []byte, sessionContext string) error { +func (h *SidecarHandler) GetLogsFollowMode( + spanCtx context.Context, + podUid string, + w http.ResponseWriter, + r *http.Request, + path string, + req commonIL.LogStruct, + containerOutputPath string, + containerOutput []byte, + sessionContext string, +) error { // Follow until this file exist, that indicates the end of container, thus the end of following. containerStatusPath := path + "/" + req.ContainerName + ".status" // Get the offset of what we read.