Skip to content

[For Test Only]: add debug log in idle extension loop#1180

Closed
litianningdatadog wants to merge 1 commit intomainfrom
tianning.li/codex-auto-review-test
Closed

[For Test Only]: add debug log in idle extension loop#1180
litianningdatadog wants to merge 1 commit intomainfrom
tianning.li/codex-auto-review-test

Conversation

@litianningdatadog
Copy link
Copy Markdown
Contributor

Summary

  • Adds a debug!("This is a test") log line in the idle extension loop handler

Test plan

  • Verify debug log appears when extension is idle and RUST_LOG=debug is set

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@litianningdatadog litianningdatadog requested a review from a team as a code owner April 10, 2026 17:47
@litianningdatadog litianningdatadog requested review from Copilot and duncanista and removed request for Copilot and duncanista April 10, 2026 17:47
@litianningdatadog litianningdatadog changed the title test: add debug log in idle extension loop [For Test Only]: add debug log in idle extension loop Apr 10, 2026
@litianningdatadog
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@litianningdatadog
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4068636bd6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

match extension::next_event(client, &r.extension_id, &aws_config.runtime_api).await {
Ok(_) => {
debug!("Extension is idle, skipping next event");
debug!("This is a test");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Remove leftover test log from idle loop

This adds a non-actionable "This is a test" message inside extension_loop_idle, which executes continuously while the extension is idle. In debug-enabled environments, this will generate repetitive noise on every idle event and make it harder to diagnose real issues from logs; it appears to be test-only output rather than production telemetry.

Useful? React with 👍 / 👎.

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