Skip to content

Commit

Permalink
chore(logs): Remove unnecessary dbg! macros
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Oct 3, 2024
1 parent 548f7e0 commit 5718828
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions server/src/persistence/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ impl EdgePersistence for S3Persister {
.send()
.await
.map(|_| ())
.map_err(|err| {
dbg!(err);
EdgeError::PersistenceError("Failed to save tokens".to_string())
})
.map_err(|err| EdgeError::PersistenceError("Failed to save tokens".to_string()))
}

async fn load_features(&self) -> EdgeResult<HashMap<String, ClientFeatures>> {
Expand All @@ -128,7 +125,6 @@ impl EdgePersistence for S3Persister {
if err.to_string().contains("NoSuchKey") {
return EdgeError::PersistenceError("No features found".to_string());
}
dbg!(err);
EdgeError::PersistenceError("Failed to load features".to_string())
});
match query {
Expand All @@ -143,11 +139,7 @@ impl EdgePersistence for S3Persister {
.cloned()
.collect::<HashMap<String, ClientFeatures>>())
}
Err(e) => {
eprintln!("Err Arg, failed to read features");
dbg!(e);
Ok(HashMap::new())
}
Err(e) => Ok(HashMap::new()),
}
}

Expand All @@ -166,12 +158,9 @@ impl EdgePersistence for S3Persister {
.await
{
Ok(_) => Ok(()),
Err(s3_err) => {
dbg!(s3_err);
Err(EdgeError::PersistenceError(
"Failed to save features".to_string(),
))
}
Err(_s3_err) => Err(EdgeError::PersistenceError(
"Failed to save features".to_string(),
)),
}
}
}

0 comments on commit 5718828

Please sign in to comment.