Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
coranos committed May 27, 2023
1 parent 7087aec commit 1f1cfd2
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions nano/node/json_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4198,27 +4198,28 @@ void nano::json_handler::telemetry ()
if (maybe_telemetry)
{
auto telemetry = *maybe_telemetry;
nano::jsonconfig config_l;
auto const should_ignore_identification_metrics = false;
nano::jsonconfig config_l;
auto const should_ignore_identification_metrics = false;
auto err = telemetry.serialize_json (config_l, should_ignore_identification_metrics);
auto const & ptree = config_l.get_tree ();
auto const & ptree = config_l.get_tree ();

if (!err)
{
if (!err)
{
response_l.insert (response_l.begin (), ptree.begin (), ptree.end ());
}
else
{
}
else
{
ec = nano::error_rpc::generic;
}
}
else
{
ec = nano::error_rpc::peer_not_found;
}

response_errors ();
}
}
else
{
ec = nano::error_rpc::peer_not_found;
}
}

response_errors ();
}
else
{
response_errors ();
Expand Down

0 comments on commit 1f1cfd2

Please sign in to comment.