Skip to content

Commit

Permalink
ref(debug-files): Polish after-upload message output (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed May 22, 2023
1 parent 81d8853 commit 216949d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/utils/dif_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use console::style;
use indicatif::HumanBytes;
use log::{debug, info, warn};
use sha1_smol::Digest;
use symbolic::common::{AsSelf, ByteView, DebugId, SelfCell, Uuid};
use symbolic::common::{Arch, AsSelf, ByteView, DebugId, SelfCell, Uuid};
use symbolic::debuginfo::macho::{BcSymbolMap, UuidMapping};
use symbolic::debuginfo::pe::PeObject;
use symbolic::debuginfo::sourcebundle::{SourceBundleWriter, SourceFileDescriptor};
Expand Down Expand Up @@ -1509,13 +1509,18 @@ fn poll_dif_assemble(
};

println!(
" {:>7} {} ({}; {}{})",
style("PENDING").yellow(),
" {:>8} {} ({}; {}{})",
style("UPLOADED").yellow(),
style(dif.debug_id.map(|id| id.to_string()).unwrap_or_default()).dim(),
dif.name,
dif.object()
.map(|object| object.arch())
.map(|arch| arch.to_string())
.map(|object| {
let arch = object.arch();
match arch {
Arch::Unknown => String::new(),
_ => arch.to_string(),
}
})
.unwrap_or_default(),
kind,
);
Expand Down

0 comments on commit 216949d

Please sign in to comment.