veza/veza-stream-server/src
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
..
analytics 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
audio refactor(stream): route audio/realtime effect-processing error through tracing 2026-04-30 15:23:43 +02:00
auth style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
bin style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
cache 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
codecs style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
compression adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
config style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
core style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
database adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
generated adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
grpc chore: consolidate CI, E2E, backend and frontend updates 2026-02-17 16:43:21 +01:00
health style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
middleware style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
monitoring style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
notifications fix(audit-1.5): replace critical .unwrap() in Rust production paths 2026-02-15 14:14:29 +01:00
routes style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
streaming style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
testing adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
transcoding style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
utils style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
audio_effects.rs adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
error.rs style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
event_bus.rs chore(refactor/sumi-migration): commit pending changes — tests, stream server, dist_verification 2026-02-13 19:39:18 +01:00
grpc_server.rs adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
lib.rs style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
main.rs style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00
playlist_manager.rs adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
simple_stream_server.rs feat: backend, stream server & infra improvements 2026-03-18 11:36:06 +01:00
structured_logging.rs style(stream-server): apply rustfmt and fix golangci-lint v2 install 2026-04-14 15:30:32 +02:00