Skip to content

Downgrade IPC send failure log to warning - #3251

Draft
jay23606 wants to merge 1 commit into
WayfireWM:masterfrom
jay23606:pr-go-simple/2857
Draft

jay23606 wants to merge 1 commit into
WayfireWM:masterfrom
jay23606:pr-go-simple/2857

Conversation

@jay23606

Copy link
Copy Markdown

Fixes #2857.

When a client disconnects while Wayfire is sending it a JSON message, write_exact fails and client_t::send_json logged Error sending json to client! at error level. This is a routine event (clients such as status bars or scripts come and go), and it produced a burst of error-level log spam.

This PR changes that single log call from LOGE to LOGW in plugins/ipc/ipc.cpp. The connection is still shut down exactly as before; only the log severity changes. The message too long error path is unchanged.

Tests: no regression test was added. The change is a log severity level, and the headless test harness has no facility for capturing log output, so there is nothing practical to assert against. I did not build or run the test suite in this environment (dependencies were not installed, per instructions), so this is verified by reading the diff only; CI should build and run the existing tests.

Tests not run here: meson compile / meson test: not run because build dependencies are not installed here and the instructions forbid installing them; CI will build and run the suite, uncrustify formatting check: not run because uncrustify is not installed here; the change only swaps one macro name on an existing line, so formatting is unaffected, regression test for log level: not added because the test harness has no log-capture facility, so the severity cannot be asserted

Fixes #2857

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downgrade IPC communication errors to warnings

1 participant