Skip to content

Commit d83d69b

Browse files
bors[bot]MikailBag
andauthored
Merge #114
114: Reduce noise in configure-toolchains r=MikailBag a=MikailBag Co-authored-by: Mikail Bagishov <[email protected]>
2 parents a335dc9 + 9d7424d commit d83d69b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/soft/src/main.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ fn process_toolchain(
9797
serde_json::to_writer(&mut wr, &val).ok();
9898
writeln!(&mut wr).ok();
9999
}
100+
if val
101+
.pointer("/payload/data/decoded")
102+
.map(|val| val.is_null())
103+
.unwrap_or(false)
104+
{
105+
continue;
106+
}
100107
cnt += match collector.process_log_item(&val).with_context(|| {
101108
format!(
102109
"failed to process output item: {}",
@@ -184,6 +191,10 @@ fn main_inner() -> anyhow::Result<()> {
184191
})
185192
};
186193
for file in collector {
194+
if std::fs::canonicalize(&file).is_err() {
195+
// ignore file if it does not exist.
196+
continue;
197+
}
187198
if file.starts_with("/tmp") || file.starts_with("/dev") || file.starts_with("/home") {
188199
continue;
189200
}

0 commit comments

Comments
 (0)