From dd8901fe0ea6728e2733d423c787c835bfd15250 Mon Sep 17 00:00:00 2001 From: btolsch Date: Tue, 16 Mar 2021 22:31:53 -0700 Subject: Move sender streaming socket log This change moves the log that reports the endpoint to which the standalone sender is connected. The current log point has an incorrect port because the answer message hasn't been received yet. Bug: None Change-Id: I34e8ba39e99202513cb65c909832eaa3409b1cf7 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2765987 Commit-Queue: Jordan Bayles Reviewed-by: Jordan Bayles --- cast/standalone_sender/looping_file_cast_agent.cc | 2 -- cast/streaming/sender_session.cc | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'cast') diff --git a/cast/standalone_sender/looping_file_cast_agent.cc b/cast/standalone_sender/looping_file_cast_agent.cc index 1a90cbb2..bb88226f 100644 --- a/cast/standalone_sender/looping_file_cast_agent.cc +++ b/cast/standalone_sender/looping_file_cast_agent.cc @@ -299,8 +299,6 @@ void LoopingFileCastAgent::OnNegotiated( return; } - OSP_LOG_INFO << "Streaming to " << connection_settings_->receiver_endpoint - << "..."; file_sender_ = std::make_unique( environment_.get(), connection_settings_->path_to_file.c_str(), senders, connection_settings_->max_bitrate); diff --git a/cast/streaming/sender_session.cc b/cast/streaming/sender_session.cc index 7a54c7e1..329da305 100644 --- a/cast/streaming/sender_session.cc +++ b/cast/streaming/sender_session.cc @@ -274,6 +274,7 @@ SenderSession::ConfiguredSenders SenderSession::SpawnSenders( // stream until we get the ANSWER message here. environment_->set_remote_endpoint( IPEndpoint{remote_address_, static_cast(answer.udp_port)}); + OSP_LOG_INFO << "Streaming to " << environment_->remote_endpoint() << "..."; ConfiguredSenders senders; for (size_t i = 0; i < answer.send_indexes.size(); ++i) { -- cgit v1.2.3