szn

Bug 538 — client error reporting uses std.debug.print

538. Inconsistent logging in client I/O

Severity: LOW (code quality) Status: ✅ FIXED Files: src/client/client.zig:15, src/client/client.zig:29

Problem

std.debug.print("fdWrite failed with errno: {any}\n", .{err});
...
std.debug.print("fdRead failed with errno: {any}\n", .{err});

These are unbuffered, unstructured writes on error paths, unlike the std.log.* calls used elsewhere. They also bypass the configured log function.

Proposed Fix

Replace with std.log.warn/std.log.err (or remove the diagnostic entirely, since the error is already propagated).

Fix

Replaced std.debug.print with std.log.warn in fdRead/fdWrite so the diagnostics go through the configured log function.

Verification status

Machine-confirmed by grep and zig build.