Skip to content

Commit

Permalink
log region snapshot details
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpesp committed Aug 13, 2024
1 parent 65943d0 commit fea9ad9
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ impl RegionSnapshotReplacementDetector {
let s =
format!("error looking up replacement request: {e}");

error!(&log, "{s}");
error!(
&log,
"{s}";
"snapshot_id" => %region_snapshot.snapshot_id,
"region_id" => %region_snapshot.region_id,
"dataset_id" => %region_snapshot.dataset_id,
);
status.errors.push(s);
continue;
}
Expand All @@ -121,8 +127,9 @@ impl RegionSnapshotReplacementDetector {
info!(
&log,
"{s}";
"region_id" => %region_snapshot.region_id,
"snapshot_id" => %region_snapshot.snapshot_id,
"region_id" => %region_snapshot.region_id,
"dataset_id" => %region_snapshot.dataset_id,
);
status.requests_created_ok.push(s);
}
Expand All @@ -131,7 +138,13 @@ impl RegionSnapshotReplacementDetector {
let s =
format!("error creating replacement request: {e}");

error!(&log, "{s}");
error!(
&log,
"{s}";
"snapshot_id" => %region_snapshot.snapshot_id,
"region_id" => %region_snapshot.region_id,
"dataset_id" => %region_snapshot.dataset_id,
);
status.errors.push(s);
}
}
Expand Down

0 comments on commit fea9ad9

Please sign in to comment.