Skip to content

Commit

Permalink
pretty print initial log
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidster committed Aug 11, 2024
1 parent cd784ef commit 60912fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ikari/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ impl BaseRenderer {
.map_err(|err| anyhow::anyhow!("Failed to create wgpu device: {err}"))?;

log::info!(
"WGPU device initialized with:\nAdapter: {:?}\nFeatures: {:?}",
"wgpu device initialized with:\nAdapter: {:#?}\nFeatures: {:#?}",
adapter.get_info(),
device.features()
);
Expand Down Expand Up @@ -4858,7 +4858,10 @@ impl Renderer {

let fmt_bytes = |bytes: usize| {
byte_unit::Byte::from_u128(bytes as u128)
.map(|byte| byte.get_appropriate_unit(byte_unit::UnitType::Decimal).to_string())
.map(|byte| {
byte.get_appropriate_unit(byte_unit::UnitType::Decimal)
.to_string()
})
.unwrap_or_else(|| format!("{bytes} bytes"))
};
log::debug!(
Expand Down

0 comments on commit 60912fd

Please sign in to comment.