Skip to content

Add --verbose flag to bypass log filtering#140

Merged
carole-lavillonniere merged 1 commit intomainfrom
carole/drg-589-2
Mar 19, 2026
Merged

Add --verbose flag to bypass log filtering#140
carole-lavillonniere merged 1 commit intomainfrom
carole/drg-589-2

Conversation

@carole-lavillonniere
Copy link
Collaborator

@carole-lavillonniere carole-lavillonniere commented Mar 19, 2026

Motivation

The log filtering introduced in the previous PR hides noisy lines by default, but users may need to see all raw output for debugging. The --verbose flag provides an escape hatch.

Changes

  • Add --verbose / -v flag to lstk logs to bypass log filtering
  • Thread verbose param through container.Logs and ui.RunLogs
  • Document the flag in README

Tests

The filtering logic is already covered by unit tests in internal/container/logfilter_test.go. The --verbose flag toggles the existing shouldFilter predicate — no new logic to test.

Towards DRG-589

Copy link
Member

@silv-io silv-io left a comment

Choose a reason for hiding this comment

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

LGTM! Just some linting errors

cmd/logs.go Outdated
return container.Logs(cmd.Context(), rt, output.NewPlainSink(os.Stdout), appConfig.Containers, follow)
}),
return container.Logs(cmd.Context(), rt, output.NewPlainSink(os.Stdout), appConfig.Containers, follow, verbose)
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
},
}),

Base automatically changed from carole/drg-589 to main March 19, 2026 10:32
@coderabbitai
Copy link

coderabbitai bot commented Mar 19, 2026

Warning

Rate limit exceeded

@carole-lavillonniere has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 50 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: b5ed3315-0a79-4bbc-855c-694f9f7c2ec8

📥 Commits

Reviewing files that changed from the base of the PR and between 20b1038 and 1778f16.

📒 Files selected for processing (4)
  • README.md
  • cmd/logs.go
  • internal/container/logs.go
  • internal/ui/run_logs.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch carole/drg-589-2
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@carole-lavillonniere
Copy link
Collaborator Author

Closed by accident

@carole-lavillonniere carole-lavillonniere merged commit a022cc1 into main Mar 19, 2026
13 checks passed
@carole-lavillonniere carole-lavillonniere deleted the carole/drg-589-2 branch March 19, 2026 10:36
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.

3 participants