Skip to content

Commit

Permalink
Reduce noise in configure-toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Nov 27, 2019
1 parent a335dc9 commit 9d7424d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/soft/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ fn process_toolchain(
serde_json::to_writer(&mut wr, &val).ok();
writeln!(&mut wr).ok();
}
if val
.pointer("/payload/data/decoded")
.map(|val| val.is_null())
.unwrap_or(false)
{
continue;
}
cnt += match collector.process_log_item(&val).with_context(|| {
format!(
"failed to process output item: {}",
Expand Down Expand Up @@ -184,6 +191,10 @@ fn main_inner() -> anyhow::Result<()> {
})
};
for file in collector {
if std::fs::canonicalize(&file).is_err() {
// ignore file if it does not exist.
continue;
}
if file.starts_with("/tmp") || file.starts_with("/dev") || file.starts_with("/home") {
continue;
}
Expand Down

0 comments on commit 9d7424d

Please sign in to comment.