Skip to content

Commit

Permalink
Add some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
ZNielsen committed Apr 24, 2021
1 parent 76db7da commit 4158b11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,3 @@ fn main() {
rocket.launch();
}


4 changes: 3 additions & 1 deletion server/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ pub fn serve_rss_handler(config: State<RocketConfig>, podcast: String) -> Option
for _ in 0..5 {
match std::fs::File::open(&path) {
Ok(file) => return Some(file),
Err(_) => {
Err(e) => {
println!("Got error: {}", e);
println!("Retrying...");
let backoff = std::time::Duration::from_millis(300);
std::thread::sleep(backoff);
},
Expand Down
4 changes: 2 additions & 2 deletions target/armv7-unknown-linux-gnueabihf/release/podracer
Git LFS file not shown

0 comments on commit 4158b11

Please sign in to comment.