Skip to content

Commit

Permalink
explicitly log layer in errors and remove span
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaxer committed Dec 15, 2023
1 parent 53b9da3 commit 239d6b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pageserver/src/tenant/storage_layer/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ impl Layer {

layer
.get_value_reconstruct_data(key, lsn_range, reconstruct_data, &self.0, ctx)
.instrument(tracing::debug_span!("get_value_reconstruct_data", layer=%self))
.await
}

Expand Down Expand Up @@ -1283,7 +1282,7 @@ impl DownloadedLayer {
// TODO(#5815): we are not logging all errors, so temporarily log them **once**
// here as well
let permanent = permanent.context("load layer");
tracing::error!("layer loading failed permanently: {permanent:#}");
tracing::error!("layer loading failed permanently for {owner}: {permanent:#}");
Ok(Err(permanent))
}
}
Expand Down

0 comments on commit 239d6b7

Please sign in to comment.