Merge pull request #6776 from influxdata/dom/log-ids
refactor: log IDs in panic messagespull/24376/head
commit
cb8254e2eb
|
@ -48,7 +48,12 @@ impl NamespaceNameResolver {
|
|||
.namespaces()
|
||||
.get_by_id(namespace_id)
|
||||
.await?
|
||||
.expect("resolving namespace name for non-existent namespace id")
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"resolving namespace name for non-existent namespace id {}",
|
||||
namespace_id
|
||||
)
|
||||
})
|
||||
.name
|
||||
.into();
|
||||
|
||||
|
|
|
@ -40,7 +40,12 @@ impl SortKeyResolver {
|
|||
.partitions()
|
||||
.get_by_id(self.partition_id)
|
||||
.await?
|
||||
.expect("resolving sort key for non-existent partition")
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"resolving sort key for non-existent partition ID {}",
|
||||
self.partition_id
|
||||
)
|
||||
})
|
||||
.sort_key();
|
||||
|
||||
Result::<_, iox_catalog::interface::Error>::Ok(s)
|
||||
|
|
|
@ -48,7 +48,12 @@ impl TableNameResolver {
|
|||
.tables()
|
||||
.get_by_id(table_id)
|
||||
.await?
|
||||
.expect("resolving table name for non-existent table id")
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"resolving table name for non-existent table id {}",
|
||||
table_id
|
||||
)
|
||||
})
|
||||
.name
|
||||
.into();
|
||||
|
||||
|
|
Loading…
Reference in New Issue