Log suffixes on commit_find_files request

Summary:
These are not logged because it was added recently but the logging code was not added.

I would prefer to use some destructuring here to guarantee we consider all fields, but it goest a bit against the idea of the `_dot_dot_Default` field.

Differential Revision: D42096917

fbshipit-source-id: b22ac79f42747f3d8891b2dd31202bd30c618dc6
This commit is contained in:
Yan Soares Couto 2022-12-19 01:36:29 -08:00 committed by Facebook GitHub Bot
parent a5b64222c2
commit 06066e1c51

View File

@ -205,9 +205,15 @@ impl AddScubaParams for thrift::CommitFindFilesParams {
if let Some(basenames) = &self.basenames {
scuba.add("param_basenames", basenames.iter().collect::<ScubaValue>());
}
if let Some(suffixes) = &self.basename_suffixes {
scuba.add("param_suffixes", suffixes.iter().collect::<ScubaValue>());
}
if let Some(prefixes) = &self.prefixes {
scuba.add("param_prefixes", prefixes.iter().collect::<ScubaValue>());
}
if let Some(after) = &self.after {
scuba.add("param_after", after.as_str());
}
}
}