Skip to content

fix: remove stray debug log statement from SetWorker function - #116

Open
saiashok0981 wants to merge 1 commit into
kubeslice:masterfrom
saiashok0981:dev/2
Open

fix: remove stray debug log statement from SetWorker function#116
saiashok0981 wants to merge 1 commit into
kubeslice:masterfrom
saiashok0981:dev/2

Conversation

@saiashok0981

Copy link
Copy Markdown

Description
This PR removes an accidental debug log.Println call that was left behind in the SetWorker function inside pkg/internal/kubernetes-operation.go.

Motivation
The line log.Println("roshani", len(worker)) was clearly a developer debug statement that was never meant to reach production. It gets printed to stderr every time a user runs kubeslice-cli edit sliceConfig. This is confusing for users and pollutes the output of any script that relies on the CLI. The string "roshani" has no meaning to end users. Removing it also allows the log import to be dropped since it was only used for this one line.

Changes
In pkg/internal/kubernetes-operation.go, the debug log.Println("roshani", len(worker)) line was removed from the SetWorker function. The now-unused "log" import was also removed.

Testing
Verified the rest of the SetWorker logic is completely unchanged.
The build compiles cleanly after the import is removed.
No other code in the file used the log package.
Checklist
Minimal and focused change — only the debug artifact removed
No functional behaviour changed
Commit message uses Conventional Commits format
DCO Signed-off-by included
Signed-off-by:
saiashok103@gmail.com

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant