Skip to content

fix: remove debug log statement from member view#1000

Open
AdeshDeshmukh wants to merge 1 commit into
goharbor:mainfrom
AdeshDeshmukh:fix/remove-debug-log-member-view
Open

fix: remove debug log statement from member view#1000
AdeshDeshmukh wants to merge 1 commit into
goharbor:mainfrom
AdeshDeshmukh:fix/remove-debug-log-member-view

Conversation

@AdeshDeshmukh

Copy link
Copy Markdown

Summary

Removes a leftover debug log.Println() statement that was polluting terminal output when viewing project members.

Problem

When users ran member view commands in non-wide format, they saw raw internal struct data printed to their terminal:

[{ID 4 false false 0} {Member Name 12 false false 0} {Type 8 false false 0} {Role Name 16 false false 0}]

This was noise from a debugging statement accidentally left in production code at line 66 of pkg/views/member/view/view.go.

What This PR Does

✅ Removes the log.Println(columns) debug statement
✅ Removes the now-unused "log" import (required by Go compiler)

What Stays the Same

The actual behavior is completely unchanged. The columns variable is still used exactly as before to build the table model on line 73. This PR only removes the unintended debug noise that was leaking into user-facing output.

Changes

File Modification
pkg/views/member/view/view.go -2 lines (debug statement + unused import)

Total diff: +0 additions, -2 deletions

Testing & Verification

go build ./... passes with no errors
go vet ./pkg/views/member/view/... passes with no warnings
✅ No functional changes to view rendering
✅ Verified columns variable still correctly used in table model
✅ Confirmed no other code in pkg/views/ uses bare log.Println for debug

Impact

  • User Experience: Cleaner terminal output, no more internal struct data visible
  • Code Quality: Removes dead code, follows project patterns
  • Risk Level: None — zero behavioral changes, purely cosmetic cleanup

Context

No other view files in pkg/views/ use bare log.Println statements. The view layer should only render output, not perform logging.

Fixes #5

Copilot AI review requested due to automatic review settings June 15, 2026 19:49
@AdeshDeshmukh AdeshDeshmukh force-pushed the fix/remove-debug-log-member-view branch from e1ab1aa to f1ad4c9 Compare June 15, 2026 19:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Removes leftover debug statement that printed raw column metadata
to stderr during member view rendering in non-wide format.

Also removes the now-unused 'log' import as required by Go.

Signed-off-by: Adesh Deshmukh <adeshkd123@gmail.com>

Fixes goharbor#5
@AdeshDeshmukh AdeshDeshmukh force-pushed the fix/remove-debug-log-member-view branch from f1ad4c9 to 2c0ce9b Compare June 16, 2026 05:26
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.

2 participants