Skip to content

cmd/check: ignore checked config log options#4097

Open
ilachev wants to merge 1 commit intoSagerNet:testingfrom
ilachev:fix/check-ignore-config-log-3927
Open

cmd/check: ignore checked config log options#4097
ilachev wants to merge 1 commit intoSagerNet:testingfrom
ilachev:fix/check-ignore-config-log-3927

Conversation

@ilachev
Copy link
Copy Markdown

@ilachev ilachev commented Apr 29, 2026

Fixes #3927

sing-box check should not apply log settings from target config.

Changes:

  • force check path to use disabled runtime logger
  • add unit tests for check-option normalization

Validation:

  • go test ./cmd/sing-box
  • manual repro with config containing log.level=trace no longer prints shutdown trace lines during check

@ilachev ilachev closed this Apr 29, 2026
@ilachev ilachev force-pushed the fix/check-ignore-config-log-3927 branch from ee3d654 to 9da0746 Compare April 29, 2026 14:14
@ilachev ilachev reopened this Apr 29, 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.

check 指令使用了被检查配置文件中的 log 配置

1 participant