Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Logging: full AppHandle Debug dump on every line of transcribe_audio (≈96% of log size)

Aperta
#2,367 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, tauri

Direzione di ricerca

Start at the Rust transcribe_audio entry point and inspect its #[instrument] fields, the per-chunk resampling logs, and the System audio dropping frames warning. Check the RollingFileAppender configuration for the filename suffix. Done means AppHandle data is excluded from routine events, chunk and unchanged-drop logs are less noisy, and generated daily log filenames end in .log.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Description

The transcribe_audio span includes app: AppHandle without skip, so every event inside it
prints the full AppHandle Debug output (~9 KB: Tauri config, CSP, plugin list, state TypeIds...).
Combined with per-chunk INFO logging during resampling (Processing chunk N /
Successfully resampled chunk N, 818 lines for one 14-min file), a single transcription attempt
produced a 7.7 MB log: 950 lines, 837 of them with the dump. Without the dumps it's 322 KB.

Suggested:
  • #[instrument(skip(app))] on transcribe_audio (and any other command taking AppHandle).
  • Per-chunk progress at DEBUG/TRACE, or one progress line per N%.
  • Minor: daily log files are named cap-desktop.log.2026-09-28; macOS doesn't treat them as
    logs (no Console.app double-click). RollingFileAppender::builder().filename_suffix("log")
    would give cap-desktop.2026-09-28.log.
  • Minor: System audio dropping frames WARN is repeated every 5 s even when the drop counter
    hasn't changed.
Additional Context
  • Cap version: 0.6.0
  • Operating system, version: 26.2 (25C56)
  • Device (optional): Macbook M1

cap-desktop-2.log

Lingua principale
Rust
Stelle
22.8k
Fork
2k
Merge medio
12h 41m
PR unite (30g)
84

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CapSoftware/Cap

Tutte le issue di CapSoftware/Cap

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.