From 1b630b48c75f1a0a0179ba577569677d237ebaf7 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 11 Jun 2026 15:24:14 +0900 Subject: [PATCH 1/2] Add crate name to cache hit and cache error logging message --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index be49c1dfd..98cedfbbc 100644 --- a/src/server.rs +++ b/src/server.rs @@ -1383,12 +1383,12 @@ where match compiled { CompileResult::Error => { - debug!("compile result: cache error"); + debug!("[{}]: compile result: cache error", out_pretty); stats.cache_errors.increment(&kind, &lang); } CompileResult::CacheHit(duration) => { - debug!("compile result: cache hit"); + debug!("[{}]: compile result: cache hit", out_pretty); stats.cache_hits.increment(&kind, &lang); stats.cache_read_hit_duration += duration; From de794e59e76ef79c14551fe359ff1505df2c5de1 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 11 Jun 2026 15:25:26 +0900 Subject: [PATCH 2/2] Log ProcessError output Not the best formatting, but more useful than nothing at all. --- src/compiler/compiler.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compiler/compiler.rs b/src/compiler/compiler.rs index 9ab69bcc2..6a069dbc8 100644 --- a/src/compiler/compiler.rs +++ b/src/compiler/compiler.rs @@ -557,7 +557,10 @@ where let (key, compilation, weak_toolchain_key) = match result { Err(e) => { return match e.downcast::() { - Ok(ProcessError(output)) => Ok((CompileResult::Error, output)), + Ok(ProcessError(output)) => { + debug!("[{}]: process error: {:?}", out_pretty, output); + Ok((CompileResult::Error, output)) + } Err(e) => Err(e), }; }