baton_debug.log logs every sample, even with nothing connected, and grows without limit
维护者通常 3 天内回复
@Omanhene20 已经在做这个了。
开始于 2026年11月6日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 56/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start with the logging calls in xplane_plugin/subprojects/baton/src/lib.rs, especially the locations identified at lines 206 and 259, and trace how the plugin initializes its log in %TEMP%. Check how connection state is available to the send path and how the log file is opened. Done means sample spam is avoided, disconnected samples are not logged individually, and startup rotates the previous log as proposed.
由索引模型根据 Issue 内容生成。
描述
Problem
baton_debug.log (in %TEMP%) gets a line for every sample. send() logs Attempted to send ... at 20 Hz before checking whether anything is connected (xplane_plugin/subprojects/baton/src/lib.rs:259), and the send loop logs Sent: ... again for every sample that does go out (lib.rs:206). The file is appended across X-Plane sessions and never trimmed. It was 1.9 MB on the lab PC after a few short sessions.
This got in the way while diagnosing #254:
- The handshake failure was buried among thousands of sample lines.
Attempted to sendlines kept appearing after the connection had already failed, which looked like data flowing.
Proposal
- Log connection events and errors, not individual samples, or at most a count every few seconds ("sent 100 samples").
- Do not log a sample at all when there is no connection. Log one line saying samples are being dropped.
- Start a fresh log each time the plugin starts, keeping the previous one as
baton_debug.old.log.
- 主要语言
- Python
- 星标
- 4
- 派生
- 9
- 平均合并
- 4 天 17 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oss-slu/PilotDataSynchronization 的其他 Issue
-
area:docs area:xplane-plugin documentation needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
oss-slu/PilotDataSynchronization#259 ·
维护者通常 3 天内回复
-
Connect TCP with an invalid address is silent in the event log可能已有人在做 @PRINCEKK122 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
oss-slu/PilotDataSynchronization#241 ·
维护者通常 3 天内回复
-
area:ml bug python
难度 2/5 1-3 小时 新手友好度 83/100
oss-slu/PilotDataSynchronization#232 ·
维护者通常 3 天内回复
-
Document running the Python listener on a second PC可能已有人在做 @Omanhene20 于 2 天前认领。 未关闭area:docs area:ml area:relay documentation needs-triage
难度 3/5 1-2 天 新手友好度 70/100
oss-slu/PilotDataSynchronization#264 · 已指派 1 人 ·
维护者通常 3 天内回复
-
data_logger stops with a traceback if its CSV is open in Excel可能已有人在做 @jmacd867 于 9 天前认领。 未关闭area:ml bug needs-triage python
oss-slu/PilotDataSynchronization#263 · 已指派 1 人 ·
维护者通常 3 天内回复
查看 oss-slu/PilotDataSynchronization 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
igormcsouza/tether#278 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 91/100
aws-samples/sample-per-model-bedrock#803 ·
维护者通常 1 天内回复
-
documentation p1
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
huggingface/accelerate#4511 ·
维护者通常 1 天内回复
-
follow-up
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复