veza/veza-stream-server
senke dfc61e8408 refactor(stream): route audio/realtime effect-processing error through tracing
The realtime effects loop in src/audio/realtime.rs was using
`eprintln!` to surface effect processing errors. That bypasses the
tracing subscriber and so the error never reaches the OTel collector
or the structured-log pipeline — invisible to operators in prod.

Switched to `tracing::error!` with the error captured as a structured
field, matching the rest of the stream server.

Why this was the only console-style call to fix:
The earlier audit reported 23 `console.log` instances across the
codebase, but most were in JSDoc/Markdown blocks or commented-out
lines. The actual production-code count, after stripping comments,
was zero on the frontend, zero in the backend API server (the
`fmt.Print*` calls live in CLI tools under cmd/ and are legitimate),
and one in the stream server (this fix). The rest of the Rust
println! calls are in load-test binaries and #[cfg(test)] blocks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 15:23:43 +02:00
..
.cargo fix(release): v1.0.1 — Conformité complète ROADMAP checklist 2026-03-03 20:17:54 +01:00
.github/workflows fix(ci): upgrade deprecated actions, fix Go version 2026-02-11 23:14:50 +01:00
audio adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
benches style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
dashboards adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
docs P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
k8s/production adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
migrations report generation and future tasks selection 2025-12-08 19:57:54 +01:00
proto adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
scripts release(v0.903): Vault - ORDER BY whitelist, rate limiter, VERSION sync, chat-server cleanup, Go 1.24 2026-02-27 09:43:25 +01:00
src refactor(stream): route audio/realtime effect-processing error through tracing 2026-04-30 15:23:43 +02:00
tools chore: audit 2.8 et 2.9 — gitignore et Tokio 2026-02-15 14:47:31 +01:00
.clippy.toml adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
.env.example feat: backend, stream server & infra improvements 2026-03-18 11:36:06 +01:00
.gitignore report generation and future tasks selection 2025-12-08 19:57:54 +01:00
AUDIT_EXHAUSTIF_STREAM_SERVER.md refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
AUDIT_STREAM_SERVER_RUST.md adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
build.rs fix(stream-server): remove useless vec! in build.rs 2026-04-14 11:41:30 +02:00
Cargo.toml fix(v0.12.6.1): remediate remaining 15 MEDIUM + LOW pentest findings 2026-03-12 06:13:38 +01:00
check_errors.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00
docker-compose.yml chore(infra): J6 — mark 3 dormant docker-compose files as deprecated 2026-04-15 12:58:39 +02:00
Dockerfile feat: backend, stream server & infra improvements 2026-03-18 11:36:06 +01:00
Dockerfile.production chore(release): v0.981 — Beta (staging deploy, bug bash, smoke test) 2026-03-02 19:33:42 +01:00
env.example adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
install.sh adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
Makefile v0.9.5 2026-03-06 10:02:53 +01:00
package.json v0.9.4 2026-03-05 23:03:43 +01:00
RAPPORT_LAB.md report generation and future tasks selection 2025-12-08 19:57:54 +01:00
sync_errors.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00
sync_test_error.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00
test_output.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00