Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[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
平均合并
7 小时 39 分钟
30 天内合并 PR
251

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GCWing/OpenBitFun 的其他 Issue

查看 GCWing/OpenBitFun 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。