Skip to content

Commit

Permalink
Add a filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Jan 19, 2024
1 parent c16c2bd commit f2b2f8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev-tools/oxlog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,12 @@ impl Zones {
let Some(paths) = self.zones.get(zone) else {
return BTreeMap::new();
};
load_svc_logs(paths.primary.clone(), &mut output);
// Some rotated files exist in `paths.primary` that we track as
// 'archived'. These files have not yet been migrated into the debug
// directory.
if filter.current || filter.archived {
load_svc_logs(paths.primary.clone(), &mut output);
}

if filter.archived {
for dir in paths.debug.clone() {
Expand Down

0 comments on commit f2b2f8a

Please sign in to comment.