diff --git a/test/IXTest.h b/test/IXTest.h index 177b83c0..adf263af 100644 --- a/test/IXTest.h +++ b/test/IXTest.h @@ -11,6 +11,7 @@ #include #include #include +#include namespace ix { @@ -32,8 +33,9 @@ namespace ix { std::lock_guard lock(_mutex); - std::cerr << obj; - std::cerr << std::endl; + std::stringstream ss; + ss << obj; + spdlog::info(ss.str()); return *this; } diff --git a/test/IXWebSocketTestConnectionDisconnection.cpp b/test/IXWebSocketTestConnectionDisconnection.cpp index 003f60d0..974f9de0 100644 --- a/test/IXWebSocketTestConnectionDisconnection.cpp +++ b/test/IXWebSocketTestConnectionDisconnection.cpp @@ -62,33 +62,33 @@ namespace std::stringstream ss; if (messageType == ix::WebSocketMessageType::Open) { - log("cmd_websocket_satori_chat: connected !"); + log("TestConnectionDisconnection: connected !"); } else if (messageType == ix::WebSocketMessageType::Close) { - log("cmd_websocket_satori_chat: disconnected !"); + log("TestConnectionDisconnection: disconnected !"); } else if (messageType == ix::WebSocketMessageType::Error) { - ss << "cmd_websocket_satori_chat: Error! "; + ss << "TestConnectionDisconnection: Error! "; ss << error.reason; log(ss.str()); } else if (messageType == ix::WebSocketMessageType::Message) { - log("cmd_websocket_satori_chat: received message.!"); + log("TestConnectionDisconnection: received message.!"); } else if (messageType == ix::WebSocketMessageType::Ping) { - log("cmd_websocket_satori_chat: received ping message.!"); + log("TestConnectionDisconnection: received ping message.!"); } else if (messageType == ix::WebSocketMessageType::Pong) { - log("cmd_websocket_satori_chat: received pong message.!"); + log("TestConnectionDisconnection: received pong message.!"); } else if (messageType == ix::WebSocketMessageType::Fragment) { - log("cmd_websocket_satori_chat: received fragment.!"); + log("TestConnectionDisconnection: received fragment.!"); } else {