Commit f3d76072 authored by Andre Le's avatar Andre Le Committed by Commit Bot

[CrOS PhoneHub] Log payload size instead of content.

Ensure we don't accidentally log PII by only logging the size.

Bug: 1106937
Change-Id: I428ac50ea33b6bc5780fcf0fc47ca92cb151a612
Fixed: 1143033
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522190
Commit-Queue: Andre Le <leandre@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824596}
parent dbcd1486
......@@ -284,7 +284,7 @@ void SecureChannel::OnMessageDecoded(const std::string& feature,
PA_LOG(VERBOSE) << "Received message from " << connection_->GetDeviceAddress()
<< ": {"
<< "feature: \"" << feature << "\", "
<< "payload: \"" << decoded_message << "\""
<< "payload size: " << decoded_message.size() << " byte(s)"
<< "}";
for (auto& observer : observer_list_)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment