Moved UDP msg logs to debug
This commit is contained in:
@@ -41,7 +41,7 @@ namespace ColumnLynx::Net::UDP {
|
||||
packet.insert(packet.end(), encryptedPayload.begin(), encryptedPayload.end());
|
||||
|
||||
mSocket.send_to(asio::buffer(packet), mRemoteEndpoint);
|
||||
Utils::log("Sent UDP packet of size " + std::to_string(packet.size()));
|
||||
Utils::debug("Sent UDP packet of size " + std::to_string(packet.size()));
|
||||
}
|
||||
|
||||
void UDPClient::stop() {
|
||||
@@ -107,7 +107,7 @@ namespace ColumnLynx::Net::UDP {
|
||||
return;
|
||||
}
|
||||
|
||||
Utils::log("UDP Client received packet from " + mRemoteEndpoint.address().to_string() + " - Packet size: " + std::to_string(bytes));
|
||||
Utils::debug("UDP Client received packet from " + mRemoteEndpoint.address().to_string() + " - Packet size: " + std::to_string(bytes));
|
||||
|
||||
// Write to TUN
|
||||
if (mTunRef) {
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace ColumnLynx::Net::UDP {
|
||||
|
||||
// For now, just log the decrypted payload
|
||||
std::string payloadStr(plaintext.begin(), plaintext.end());
|
||||
Utils::log("UDP: Received packet from " + mRemoteEndpoint.address().to_string() + " - Payload: " + payloadStr);
|
||||
Utils::debug("UDP: Received packet from " + mRemoteEndpoint.address().to_string() + " - Payload: " + payloadStr);
|
||||
|
||||
if (mTun) {
|
||||
mTun->writePacket(plaintext); // Send to virtual interface
|
||||
@@ -109,7 +109,7 @@ namespace ColumnLynx::Net::UDP {
|
||||
|
||||
// Send packet
|
||||
mSocket.send_to(asio::buffer(packet), endpoint);
|
||||
Utils::log("UDP: Sent packet of size " + std::to_string(packet.size()) + " to " + std::to_string(sessionID) + " (" + endpoint.address().to_string() + ":" + std::to_string(endpoint.port()) + ")");
|
||||
Utils::debug("UDP: Sent packet of size " + std::to_string(packet.size()) + " to " + std::to_string(sessionID) + " (" + endpoint.address().to_string() + ":" + std::to_string(endpoint.port()) + ")");
|
||||
}
|
||||
|
||||
void UDPServer::stop() {
|
||||
|
||||
Reference in New Issue
Block a user