Skip to content

Commit 7525b1b

Browse files
authored
Merge pull request #384 from superfly/somto/better-error
Add info to error log
2 parents 1099578 + 13057d0 commit 7525b1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/corro-agent/src/agent/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ pub async fn process_multiple_changes(
901901
res
902902
}
903903
Err(e) => {
904-
error!("error processing single version: {e}");
904+
error!(%actor_id, versions = ?versions, "error processing single version: {e}");
905905
if e.sqlite_error_code().is_some_and(|code| {
906906
code != rusqlite::ErrorCode::DiskFull
907907
&& code != rusqlite::ErrorCode::OperationInterrupted

crates/corrosion/src/command/consul/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ fn update_checks(
551551

552552
#[derive(Debug, thiserror::Error)]
553553
enum UpdateError {
554-
#[error("consul: {0}")]
554+
#[error("consul: {0:?}")]
555555
Consul(#[from] consul_client::Error),
556556
#[error("timed out")]
557557
TimedOut,

0 commit comments

Comments
 (0)