From 670bfdd18969c61fd19c2ed0f8941bfbe6ec29fe Mon Sep 17 00:00:00 2001 From: oxoxDev <164490987+oxoxDev@users.noreply.github.com> Date: Mon, 8 Jun 2026 19:55:31 +0530 Subject: [PATCH] fix(shell): demote per-poll CEF cache-held log to debug (TAURI-RUST-B7S) (#3496) --- app/src-tauri/src/cef_preflight.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src-tauri/src/cef_preflight.rs b/app/src-tauri/src/cef_preflight.rs index e5a7f770f..eb3c458a0 100644 --- a/app/src-tauri/src/cef_preflight.rs +++ b/app/src-tauri/src/cef_preflight.rs @@ -195,7 +195,16 @@ pub fn check_cef_cache_lock(cache_path: &Path) -> Result<(), CefLockError> { }; if is_pid_alive(pid) { - log::error!( + // `debug!`, not `error!`: a live lock-holder is the *expected, + // self-healing* precondition the caller polls on, not a fault. This is a + // pure predicate — severity belongs to the loop, not here. #3337 wrapped + // this check in the `wait_for_cache_release` poll loop, so an `error!` + // here fired once *per poll* (~3 on a wait that clears, ~11 on one that + // times out), flooding Sentry (TAURI-RUST-B7S: 29k events from a single + // release). The loop already logs `warn!` per poll and a single `error!` + // on give-up, matching the Windows `cef_singleton_wait` sibling. Do not + // re-promote this to `error!`. + log::debug!( "[cef-preflight] CEF cache held by host={} pid={} at {}", host, pid,