Skip to content

Commit

Permalink
formatted GetLogsFollowMode args
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinetran committed Dec 12, 2024
1 parent 908c15e commit 5880378
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkg/slurm/GetLogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5880378

Please sign in to comment.