From 0b6b03a4be96900136d55ccb41856b8927896b75 Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Thu, 2 Jul 2026 13:52:29 +0200 Subject: [PATCH] core: Log database + reducer name on error In addition to the error message, log the database identity and the reducer name when a reducer returns an error. This provides a useful correlation, for example when the error has upstream effects such as causing elevated error rates in the proxy connection establishment due to the module rejecting the connection on purpose. --- crates/core/src/host/wasm_common/module_host_actor.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/core/src/host/wasm_common/module_host_actor.rs b/crates/core/src/host/wasm_common/module_host_actor.rs index 97951829d16..0a259c9ace6 100644 --- a/crates/core/src/host/wasm_common/module_host_actor.rs +++ b/crates/core/src/host/wasm_common/module_host_actor.rs @@ -1740,7 +1740,12 @@ fn log_reducer_error( .with_label_values(&replica_ctx.database_identity, module_hash, reducer) .inc(); - log::info!("reducer returned error: {message}"); + log::info!( + "reducer `{}` of database `{}` returned error: {}", + reducer, + replica_ctx.database_identity, + message + ); let record = Record { ts: chrono::DateTime::from_timestamp_micros(timestamp.to_micros_since_unix_epoch()).unwrap(),