Skip to content

Commit

Permalink
Merge pull request #287 from stakwork/log/add-log-to-second-user
Browse files Browse the repository at this point in the history
update: convert to value
  • Loading branch information
tobi-bams authored Sep 9, 2024
2 parents 1177203 + a3c3b81 commit c0e8a38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/defaults.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use serde_json::Value;

use crate::config::*;
use crate::images::cln::{ClnImage, ClnPlugin};
use crate::images::{
Expand Down Expand Up @@ -255,9 +257,9 @@ pub fn create_super_user() -> User {
{
Ok(res) => {
if res.status().clone() != 201 {
match res.json::<SendSwarmDetailsResponse>().await {
match res.json::<Value>().await {
Ok(data) => {
log::error!("{}", data.message)
log::error!("{:?}", data)
}
Err(err) => {
log::error!("Error parsing JSON response: {:?}", err);
Expand Down

0 comments on commit c0e8a38

Please sign in to comment.