From 8e46be2bf1565506dfd02c5dfd8037d1a9a656fb Mon Sep 17 00:00:00 2001 From: saiashok0981 Date: Tue, 14 Jul 2026 23:46:04 +0530 Subject: [PATCH] fix: remove debug log statement from SetWorker function A stray debug log.Println call with the literal string 'roshani' was left in the SetWorker function in pkg/internal/kubernetes-operation.go. This is clearly a leftover from development and causes unintended output on every invocation of kubeslice-cli commands that modify worker slice configuration (e.g. kubeslice-cli edit sliceConfig). The debug statement also required an import of the 'log' package solely for this single call. Removing the statement allows the 'log' import to be dropped as well, reducing unnecessary dependencies within the file. Signed-off-by: saiashok103@gmail.com --- pkg/internal/kubernetes-operation.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/internal/kubernetes-operation.go b/pkg/internal/kubernetes-operation.go index 9842a31..29fb438 100644 --- a/pkg/internal/kubernetes-operation.go +++ b/pkg/internal/kubernetes-operation.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io/ioutil" - "log" "strconv" "strings" "time" @@ -184,7 +183,6 @@ func SetWorker(worker []string, filename string) { jsonByte := getConf(filename) var value string value = string(jsonByte) - log.Println("roshani", len(worker)) if len(worker) != 0 { for i := 0; i < len(worker); i++ { value, _ = sjson.Set(value, "spec.clusters."+strconv.Itoa(i), worker[i])