mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Improve logging of skipped share targets due to vendorID.
PiperOrigin-RevId: 744814331
This commit is contained in:
committed by
Copybara-Service
parent
7ce7527f60
commit
516c0c6e53
@@ -32,7 +32,8 @@ bool WrappedShareTargetDiscoveredCallback::ShouldBlockShareTarget(
|
||||
void WrappedShareTargetDiscoveredCallback::OnShareTargetDiscovered(
|
||||
const ShareTarget& share_target) {
|
||||
if (ShouldBlockShareTarget(share_target)) {
|
||||
LOG(INFO) << "Skipping share target discovered for vendor id "
|
||||
LOG(INFO) << "Skipping share target id: " << share_target.id
|
||||
<< " discovered for vendor id "
|
||||
<< static_cast<uint32_t>(blocked_vendor_id_);
|
||||
return;
|
||||
}
|
||||
@@ -44,7 +45,8 @@ void WrappedShareTargetDiscoveredCallback::OnShareTargetDiscovered(
|
||||
void WrappedShareTargetDiscoveredCallback::OnShareTargetUpdated(
|
||||
const ShareTarget& share_target) {
|
||||
if (ShouldBlockShareTarget(share_target)) {
|
||||
LOG(INFO) << "Skipping share target updated for vendor id "
|
||||
LOG(INFO) << "Skipping share target id: " << share_target.id
|
||||
<< " updated for vendor id "
|
||||
<< static_cast<uint32_t>(blocked_vendor_id_);
|
||||
return;
|
||||
}
|
||||
@@ -56,7 +58,8 @@ void WrappedShareTargetDiscoveredCallback::OnShareTargetUpdated(
|
||||
void WrappedShareTargetDiscoveredCallback::OnShareTargetLost(
|
||||
const ShareTarget& share_target) {
|
||||
if (ShouldBlockShareTarget(share_target)) {
|
||||
LOG(INFO) << "Skipping share target lost for vendor id "
|
||||
LOG(INFO) << "Skipping share target id: " << share_target.id
|
||||
<< " lost for vendor id "
|
||||
<< static_cast<uint32_t>(blocked_vendor_id_);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user