[Bug]: 日志等级选择 Off 时配置校验拒绝该值

已關閉
#3,483 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

已經有一個關聯 PR 被合併了。

  • #3485 來自 @Raing5Days —— 已合併

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
rust
領域
desktop

研究方向

Start by inspecting the logging-level selector in Settings > Data > Diagnostics and the configuration validation that rejects off; the issue does not name files or tests. Check the linked pull request #3485 for work already underway. Done means the behavior is consistent: either Off saves and the effective runtime level becomes off, or the unsupported option is removed from the selector and the minimum level is explained.

由索引模型根據 Issue 內容生成。

描述

Summary
“设置 > 数据 > 诊断”中的日志等级下拉框提供 Off,但选择后无法保存,实际等级仍为 error。诊断日志报错:Failed to set config: value must be one of: "error", "warn", "info", "debug", "trace"。请确认这是刻意保留最低日志等级的行为,还是配置校验遗漏了 off。

Area
Desktop app

Reproduction or evidence

  1. 使用 OpenBitFun 1.0.6-nightly.20261019(Windows x86_64)。
  2. 打开“设置 > 数据 > 诊断”,将日志等级改为 Off。
  3. 保存失败,当前有效等级仍为 error。本地诊断包中的 webview log 记录了上述配置校验错误;诊断 ZIP 未上传到 Issue。

Environment
OpenBitFun version: 1.0.6-nightly.20261019
OS: Windows x86_64

Expected behavior
如果支持完全关闭日志,配置校验应接受 off,并确认运行时有效等级变为 off;如果这是有意禁止的保留行为,则应从下拉框移除 Off 并说明最低日志等级,避免 UI 提供无法使用的选项。

主要語言
Rust
星號
2.3k
分支
236
平均合併
13 小時 16 分鐘
30 天內合併 PR
315

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

GCWing/OpenBitFun 的其他 Issue

查看 GCWing/OpenBitFun 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。