summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/find_artifacts.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/find_artifacts.rs b/src/db/find_artifacts.rs
index 47184b9..82a2798 100644
--- a/src/db/find_artifacts.rs
+++ b/src/db/find_artifacts.rs
@@ -175,16 +175,20 @@ pub fn find_artifacts<'a>(
trace!("The job we found had env: {:?}", job_env);
if let Some(pkg_env) = package_environment.as_ref() {
+ trace!("Filtering environment...");
let filter_result = job_env.iter()
.all(|(k, v)| {
pkg_env
.iter()
.chain(additional_env.iter().map(|tpl| (&tpl.0, &tpl.1)))
+ .inspect(|(key, value)| trace!("{k} == {key} && {v} == {value}", k = k, key = key, v = v, value = value))
.any(|(key, value)| k == key.as_ref() && v == value)
});
+ trace!("Filder result = {}", filter_result);
Ok((tpl.0, filter_result))
} else {
+ trace!("Not filtering environment...");
Ok((tpl.0, true))
}
})