• Joined on 2026-04-07
dailz commented on issue dailz/logViewer#21 2026-06-10 13:37:23 +08:00
🟡 [M11] LogLevel::from_str 不 trim 空白

修复方案

根因: LogLevel::from_str (crates/core/src/types.rs) 使用 s.to_uppercase() 直接匹配,未对输入做 trim() 处理。JSON 日志路径中 serde 保留字段原始值(含前后空白),导致 `"…

dailz closed issue dailz/logViewer#20 2026-06-10 11:37:09 +08:00
🟡 [M10] UTF-8 BOM 开头的 JSON 行被拒绝
dailz pushed to master at dailz/logViewer 2026-06-10 11:37:09 +08:00
eedab3ac96 fix(parser): strip UTF-8 BOM before JSON parsing
dailz commented on issue dailz/logViewer#19 2026-06-10 10:47:28 +08:00
🟡 [M9] 非字符串类型的 timestamp/level 字段被静默丢弃

已修复,提交 8e9600d。

根因: parse_line 中 fields.remove(key) 在类型检查之前执行,非字符串值(如 {"level":30})被移除后 as_str() 返回 None,导致字段既不在提取结果中也不在 fields 中 → 静默数据…

dailz closed issue dailz/logViewer#19 2026-06-10 10:47:10 +08:00
🟡 [M9] 非字符串类型的 timestamp/level 字段被静默丢弃
dailz pushed to master at dailz/logViewer 2026-06-10 10:47:10 +08:00
8e9600dda2 fix(parser): preserve non-string timestamp/level fields instead of silently dropping them (closes #19)
dailz closed issue dailz/logViewer#18 2026-06-09 17:30:53 +08:00
🟡 [M8] 配置写入非原子,并发读取可能回退默认
dailz commented on issue dailz/logViewer#17 2026-06-09 16:16:37 +08:00
🟡 [M7] 并发缓存保存共享同一临时文件路径

修复方案

根因: IndexCache::save_with_hash()save() 使用固定的 .index.tmp 临时路径,后台索引线程和 TUI 主线程并发调用时 File::create 截断对方数据。

修复: 用 `tempfile::Builde…

dailz closed issue dailz/logViewer#17 2026-06-09 16:13:50 +08:00
🟡 [M7] 并发缓存保存共享同一临时文件路径
dailz pushed to master at dailz/logViewer 2026-06-09 16:13:50 +08:00
2cebbd94c4 fix: concurrent cache save uses unique temp files (#17)
dailz commented on issue dailz/logViewer#16 2026-06-09 15:16:00 +08:00
🟡 [M6] 后台线程在有界通道上阻塞 send

已修复,提交 0d88e93。

根因: spawn_indexer 和 spawn_visual_height_rebuild 的后台线程使用阻塞 tx.send() 在有界通道上,consumer 停止 drain 时线程永久挂起,取消检查不可达。

修复方案: -…

dailz closed issue dailz/logViewer#16 2026-06-09 15:14:47 +08:00
🟡 [M6] 后台线程在有界通道上阻塞 send
dailz pushed to master at dailz/logViewer 2026-06-09 15:14:47 +08:00
0d88e933e6 fix(io): replace blocking channel sends with cancel-aware alternatives (closes #16)
420b853cb9 fix(watcher): filter Remove events by path to prevent false removed reports (closes #15)
7852e92ecc fix(watcher): forward notify backend errors instead of silently discarding
Compare 3 commits »
dailz closed issue dailz/go-kv#5 2026-06-09 13:38:17 +08:00
[Critical] WAL write failure 语义过于简化:write() 失败后 bytes 可能已落盘
dailz closed issue dailz/logViewer#15 2026-06-09 13:18:55 +08:00
🟡 [M5] Remove 事件不经过路径过滤,可能误报
dailz commented on issue dailz/logViewer#15 2026-06-09 13:18:50 +08:00
🟡 [M5] Remove 事件不经过路径过滤,可能误报

已修复,commit 420b853。

修复方案:将路径过滤移至 event.kind 匹配之前,所有事件类型(包括 Remove)统一经过路径检查。

变更内容

  • 提取 process_event() 函数,路径过滤在 match 之前执行 -…
dailz opened issue dailz/go-kv#14 2026-06-09 13:09:15 +08:00
[Important] publishedSequence 需要明确的内存序约束
dailz opened issue dailz/go-kv#13 2026-06-09 13:09:01 +08:00
[Important] Batch 校验缺少资源上限
dailz opened issue dailz/go-kv#12 2026-06-09 13:08:50 +08:00
[Important] 尾部截断后缺少持久化步骤
dailz opened issue dailz/go-kv#11 2026-06-09 13:08:38 +08:00
[Important] CURRENT 文件权威性与实际恢复模型不一致