Skip to content

Commit

Permalink
Merge #114
Browse files Browse the repository at this point in the history
114: Reduce noise in configure-toolchains r=MikailBag a=MikailBag



Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru>
  • Loading branch information
bors[bot] and MikailBag committed Nov 27, 2019
2 parents a335dc9 + 9d7424d commit d83d69b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/soft/src/main.rs
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 d83d69b

Please sign in to comment.