Skip to content

Commit

Permalink
Add a bit more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanabx committed Apr 18, 2024
1 parent ddccb7d commit d2bfb2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ async fn set_up_client(

for entry_path in fs::read_dir(to_path.join("applications")).unwrap() {
let path = entry_path.unwrap().path();
log::debug!("Looking at path: {:?}", path);
if let Ok(file_text) = read_to_string(&path) {
// run regex on it now
let file_text = exec_regex
Expand Down Expand Up @@ -150,6 +151,7 @@ async fn set_up_client(
&to_path.join("icons"),
&to_path.join("pixmaps"),
) {
log::debug!("Found icon path that matches! {:?}", icon_path);
match icon_path.extension().map(|p| p.to_str().unwrap()) {
Some("png" | "svg") => {
let file_bytes = read(icon_path).unwrap();
Expand Down

0 comments on commit d2bfb2e

Please sign in to comment.