Skip to content

Commit 5aa77d2

Browse files
committed
chore: switched a couple of logs to debug level
1 parent 4a216c9 commit 5aa77d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/book/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,26 +212,26 @@ impl Book {
212212
log::info!("Path is a directory, searching for .yml files");
213213
let glob_pattern = path.join("**/*.yml").as_str().to_string();
214214
log::info!("Using glob pattern: {}", glob_pattern);
215-
215+
216216
for entry in glob(&glob_pattern)? {
217217
match entry {
218218
Ok(entry_path) => {
219-
log::info!("Found file: {:?}", entry_path);
219+
log::debug!("Found file: {:?}", entry_path);
220220
// skip files in hidden directories (starting with .)
221221
// but allow the root .robopages directory
222222
if let Ok(relative_path) = entry_path.strip_prefix(&path) {
223223
if relative_path.components().any(|component| {
224224
let comp_str = component.as_os_str().to_string_lossy();
225225
comp_str.starts_with(".") && comp_str != "." && comp_str != ".."
226226
}) {
227-
log::info!("Skipping hidden file/directory");
227+
log::debug!("Skipping hidden file/directory");
228228
continue;
229229
}
230230
}
231231

232232
if let Ok(utf8_path) = Utf8PathBuf::from_path_buf(entry_path) {
233233
eval_if_in_filter!(utf8_path, filter, {
234-
log::info!("Adding path: {:?}", utf8_path);
234+
log::debug!("Adding path: {:?}", utf8_path);
235235
page_paths.push(utf8_path);
236236
});
237237
} else {
@@ -269,13 +269,13 @@ impl Book {
269269
if page.categories.is_empty() {
270270
let path_buf = page_path.strip_prefix(&path)?;
271271
let parent = path_buf.parent();
272-
272+
273273
if let Some(parent_path) = parent {
274274
page.categories = parent_path
275275
.components()
276276
.map(|c| c.as_str().to_string())
277277
.collect();
278-
278+
279279
// Skip empty categories
280280
page.categories.retain(|c| !c.is_empty());
281281
}

0 commit comments

Comments
 (0)