Skip to content

Commit

Permalink
Merge pull request #289 from stakwork/fix/logging
Browse files Browse the repository at this point in the history
update: try logging value
  • Loading branch information
tobi-bams authored Sep 9, 2024
2 parents 7f3bd91 + 5ab7f76 commit fcb4c27
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,15 @@ pub fn create_super_user() -> User {
Ok(res) => {
if res.status().clone() != 201 {
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);
// }
// }
// 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 fcb4c27

Please sign in to comment.