Skip to content

fix: default devnet log filter to info,ckb-script=debug#471

Merged
RetricSu merged 1 commit into
developfrom
agent/claude-bear/log-filter-info
Jul 25, 2026
Merged

fix: default devnet log filter to info,ckb-script=debug#471
RetricSu merged 1 commit into
developfrom
agent/claude-bear/log-filter-info

Conversation

@humble-little-bear

Copy link
Copy Markdown
Collaborator

Why

Live-testing offckb status on a fresh devnet (see #468 follow-up) showed the Logs panel permanently empty with the default config. The devnet template ships filter = "warn,ckb-script=debug", and a healthy devnet produces almost no warn-level output — so the panel looks broken even though the whole Terminal-module pipeline works.

What

  • ckb/devnet/ckb.toml, ckb/devnet/ckb-miner.toml: [logger] filterinfo,ckb-script=debug
  • src/tui/devnet-reference-templates.ts: same change in both embedded reference templates used by the config editor
  • README.md: update the default-log-level example
  • Patch changeset included

info restores the per-block log stream in the Logs panel; keeping ckb-script=debug preserves script execution debug output for contract developers.

Existing chains are intentionally not migrated (their filter may be user-customized) — the changeset notes how to opt in.

Verification

  • Full suite: 28 suites / 220 passed
  • tsc / eslint clean
  • Manually verified on a live devnet that info,ckb-script=debug makes the ckb-tui Logs panel stream per-block entries with working level counters

A healthy devnet emits almost no warn-level logs, so with the previous
default filter (warn,ckb-script=debug) the `offckb status` Logs panel
stayed permanently empty and looked broken. Switch the devnet ckb.toml
and ckb-miner.toml templates (and the config editor's embedded reference
templates) to info,ckb-script=debug so the per-block log stream is
visible while script debug output is preserved.

Existing chains keep their current filter; edit [logger] filter in the
devnet ckb.toml to opt in.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f74122f5-8bb1-4682-b03a-07840981a583

📥 Commits

Reviewing files that changed from the base of the PR and between ce23e72 and 5ab4779.

📒 Files selected for processing (5)
  • .changeset/devnet-log-filter-info.md
  • README.md
  • ckb/devnet/ckb-miner.toml
  • ckb/devnet/ckb.toml
  • src/tui/devnet-reference-templates.ts

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Devnet logs now display per-block activity at the info level, making the Logs panel more informative during development.
  • Documentation

    • Updated the default Devnet configuration examples to reflect the new logging level.

Walkthrough

The devnet logger filter default changes from warn,ckb-script=debug to info,ckb-script=debug in configuration files, embedded TUI templates, README guidance, and changeset metadata.

Changes

Devnet logger defaults

Layer / File(s) Summary
Update devnet logger defaults
ckb/devnet/*.toml, src/tui/devnet-reference-templates.ts, README.md, .changeset/devnet-log-filter-info.md
Devnet CKB and miner templates, embedded reference templates, and documentation now use info,ckb-script=debug; the changeset records the updated default and existing-config guidance.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: retricsu

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: switching the default devnet log filter to info,ckb-script=debug.
Description check ✅ Passed The description matches the changeset and explains the motivation, files changed, and verification steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

@RetricSu
RetricSu merged commit 406415e into develop Jul 25, 2026
7 checks passed
@RetricSu
RetricSu deleted the agent/claude-bear/log-filter-info branch July 25, 2026 00:22
@coderabbitai coderabbitai Bot mentioned this pull request Jul 25, 2026
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