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:
parent
69b00f8915
commit
6114f6dcc2
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue