From 7b1b690f030e8885ce1eb1e34389dc9740db9730 Mon Sep 17 00:00:00 2001 From: joshua-spacetime Date: Thu, 1 Oct 2026 16:40:17 -0700 Subject: [PATCH] Print full error chain on failed database updates --- crates/core/src/host/wasm_common/module_host_actor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f0ca26e0da8..a517d5b756e 100644 --- a/crates/core/src/host/wasm_common/module_host_actor.rs +++ b/crates/core/src/host/wasm_common/module_host_actor.rs @@ -760,8 +760,8 @@ impl InstanceCommon { match res { Err(e) => { // TODO: Review log level after migration/user errors can be distinguished from internal database failures. - log::warn!("Database update failed: {} @ {}", e, stdb.database_identity()); - system_logger.warn(&format!("Database update failed: {e}")); + log::warn!("Database update failed: {:#} @ {}", e, stdb.database_identity()); + system_logger.warn(&format!("Database update failed: {e:#}")); let (_, tx_metrics, reducer) = stdb.rollback_mut_tx(tx); stdb.report_mut_tx_metrics(reducer, tx_metrics, None); Ok(UpdateDatabaseResult::ErrorExecutingMigration(e))