diff --git a/trick_source/sim_services/VariableServer/VariableServer.cpp b/trick_source/sim_services/VariableServer/VariableServer.cpp index 51dc79a6..6bee8820 100644 --- a/trick_source/sim_services/VariableServer/VariableServer.cpp +++ b/trick_source/sim_services/VariableServer/VariableServer.cpp @@ -21,7 +21,7 @@ Trick::VariableServer::~VariableServer() { std::ostream& Trick::operator<< (std::ostream& s, Trick::VariableServer& vs) { std::map < pthread_t , VariableServerThread * >::iterator it ; - std::cout << "{\"variable-server-connections\":[" << std::endl; + s << "{\"variable_server_connections\":[" << std::endl; int count = 0; int n_connections = (int)vs.var_server_threads.size(); for ( it = vs.var_server_threads.begin() ; it != vs.var_server_threads.end() ; it++ ) { @@ -29,7 +29,7 @@ std::ostream& Trick::operator<< (std::ostream& s, Trick::VariableServer& vs) { s << *(*it).second; s << "}"; if ((n_connections-count)>1) { - std::cout << "," ; + s << "," ; } s << std::endl; count ++;