baton_debug.log logs every sample, even with nothing connected, and grows without limit
Maintainer thường phản hồi trong vòng 3 ngày
@Omanhene20 đang làm issue này rồi.
Từ ngày 6/11/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- observability
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 4
- Fork
- 9
- Merge trung bình
- 4 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oss-slu/PilotDataSynchronization
-
area:docs area:xplane-plugin documentation needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oss-slu/PilotDataSynchronization#259 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Connect TCP with an invalid address is silent in the event logCó thể đã có người làm @PRINCEKK122 đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
oss-slu/PilotDataSynchronization#241 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
cluster_pilots.py shows a traceback for a bad --k and leaves outputs when --truth is invalidĐang mởarea:ml bug python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
oss-slu/PilotDataSynchronization#232 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Document running the Python listener on a second PCCó thể đã có người làm @Omanhene20 đã nhận 2 ngày trước. Đang mởarea:docs area:ml area:relay documentation needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
oss-slu/PilotDataSynchronization#264 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
data_logger stops with a traceback if its CSV is open in ExcelCó thể đã có người làm @jmacd867 đã nhận 9 ngày trước. Đang mởarea:ml bug needs-triage python
oss-slu/PilotDataSynchronization#263 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của oss-slu/PilotDataSynchronization
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
igormcsouza/tether#278 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
aws-samples/sample-per-model-bedrock#803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation p1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
huggingface/accelerate#4511 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày