1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

webrtc: Show connection details

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-05-28 10:43:04 +02:00 committed by pipeacosta
parent 69b00f8915
commit 6114f6dcc2

View file

@ -202,7 +202,7 @@ void PeerConnection::onConnectionStateChange(rtc::PeerConnection::State state) {
}
case rtc::PeerConnection::State::Connecting: {
logger->debug("Peer connection connecting.");
logger->debug("Peer connection connecting");
break;
}
@ -212,14 +212,14 @@ void PeerConnection::onConnectionStateChange(rtc::PeerConnection::State state) {
if (conn->getSelectedCandidatePair(&local, &remote)) {
std::stringstream l, r;
l << local, r << remote;
logger->debug("Peer connection connected:\n"
logger->info("Peer connection connected:\n"
"local: {}\n"
"remote: {}\n"
"bytes sent: {} / bytes received: {} / rtt: {}\n",
l.str(), r.str(), conn->bytesSent(), conn->bytesReceived(),
rtt.value_or(decltype(rtt)::value_type{0}));
} else {
logger->debug("Peer connection connected.\n"
logger->warn("Peer connection connected.\n"
"Could not get candidate pair info.\n");
}
break;