Skip to content

Commit

Permalink
debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Oct 14, 2023
1 parent 5b50f35 commit e5c5899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broadcast_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ void BroadcastServer::queue_waypoint(const tlms::GrpcWaypoint *waypoint) noexcep

google::protobuf::util::MessageToJsonString(*waypoint, &plain_serialized, options);

std::cout << "Sending: " << plain_serialized << std::endl;

// lock connection list and yeet the waypoint to all peers
{
std::lock_guard<std::mutex> guard(connection_lock_);
//connection_list::iterator it;
auto filter_iterator = filters_.begin();
for (auto &connection: connections_) {
std::cout << "Filter: " << filter_iterator->match(waypoint->line(), waypoint->region()) <<" Sending: " << plain_serialized << std::endl;
if (filter_iterator->match(waypoint->line(), waypoint->region())) {
server_.send(connection, plain_serialized, websocketpp::frame::opcode::TEXT);
}
Expand Down

0 comments on commit e5c5899

Please sign in to comment.