Skip to content

Commit

Permalink
Merge pull request #288 from stakwork/undo-parse-response
Browse files Browse the repository at this point in the history
log: comment out parsing res and using directly
  • Loading branch information
tobi-bams authored Sep 9, 2024
2 parents c0e8a38 + 86f3d45 commit 7f3bd91
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,16 @@ pub fn create_super_user() -> User {
{
Ok(res) => {
if res.status().clone() != 201 {
match res.json::<Value>().await {
Ok(data) => {
log::error!("{:?}", data)
}
Err(err) => {
log::error!("Error parsing JSON response: {:?}", err);
}
}
log::error!("Response code: {:?}", res.status().clone());
log::error!("Response: {:?}", res);
// match res.json::<Value>().await {
// Ok(data) => {
// log::error!("{:?}", data)
// }
// Err(err) => {
// log::error!("Error parsing JSON response: {:?}", err);
// }
// }
return;
}
log::info!("Swarm details sent to super admin successfully")
Expand Down

0 comments on commit 7f3bd91

Please sign in to comment.