diff options
author | Abraham Corea Diaz <abrahamcd@google.com> | 2021-07-02 00:11:05 +0000 |
---|---|---|
committer | Openscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-07-02 17:01:55 +0000 |
commit | cf428dff2a51418bff4c5b54ecac0f71294db18d (patch) | |
tree | 4065798866bf0bfd297435fa5e97cdd314596486 /cast/streaming/session_messenger.cc | |
parent | 2e2730fe0190f72dadd631176d2f380b4a6186a8 (diff) | |
download | openscreen-cf428dff2a51418bff4c5b54ecac0f71294db18d.tar.gz |
Remove DVLOG debug logging throughout LibCast
This patch removes instances of OSP_DVLOG in LibCast or changes them to OSP_VLOG as needed.
Bug: b/159172782
Change-Id: I2fab57cece82af0dc67ad9a596404d563e7707cd
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3001340
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/streaming/session_messenger.cc')
-rw-r--r-- | cast/streaming/session_messenger.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cast/streaming/session_messenger.cc b/cast/streaming/session_messenger.cc index 389d87bb..a612b68d 100644 --- a/cast/streaming/session_messenger.cc +++ b/cast/streaming/session_messenger.cc @@ -23,7 +23,7 @@ void ReplyIfTimedOut( replies) { for (auto it = replies->begin(); it != replies->end(); ++it) { if (it->first == sequence_number) { - OSP_DVLOG + OSP_VLOG << "Replying with empty message due to timeout for sequence number: " << sequence_number; it->second(ReceiverMessage{reply_type, sequence_number}); @@ -57,9 +57,9 @@ Error SessionMessenger::SendMessage(const std::string& destination_id, if (body_or_error.is_error()) { return std::move(body_or_error.error()); } - OSP_DVLOG << "Sending message: DESTINATION[" << destination_id - << "], NAMESPACE[" << namespace_ << "], BODY:\n" - << body_or_error.value(); + OSP_VLOG << "Sending message: DESTINATION[" << destination_id + << "], NAMESPACE[" << namespace_ << "], BODY:\n" + << body_or_error.value(); message_port_->PostMessage(destination_id, namespace_, body_or_error.value()); return Error::None(); } @@ -180,8 +180,6 @@ void SenderSessionMessenger::OnMessage(const std::string& source_id, return; } - OSP_DVLOG << "Received a valid reply from " << source_id - << ". Reply body: " << message; it->second(std::move(receiver_message.value({}))); // Calling the function callback may result in the checksum of the pointed @@ -268,8 +266,6 @@ void ReceiverSessionMessenger::OnMessage(const std::string& source_id, if (it == callbacks_.end()) { OSP_DLOG_INFO << "Received message without a callback, dropping"; } else { - OSP_DVLOG << "Received valid message from " << source_id - << ", executing callback. Message body: " << message; it->second(sender_message.value()); } } |