From 570258dd48fa47edb247cb212cdbdae1c7c8c2b4 Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 19 Feb 2021 11:25:19 -0800 Subject: [PATCH] 358283607 Do not log names of discovered Bluetooth devices. --- cpp/core/internal/bluetooth_device_name.cc | 5 ----- cpp/platform/public/ble.cc | 3 --- 2 files changed, 8 deletions(-) diff --git a/cpp/core/internal/bluetooth_device_name.cc b/cpp/core/internal/bluetooth_device_name.cc index 850c5031..6bd177ba 100644 --- a/cpp/core/internal/bluetooth_device_name.cc +++ b/cpp/core/internal/bluetooth_device_name.cc @@ -48,12 +48,7 @@ BluetoothDeviceName::BluetoothDeviceName( absl::string_view bluetooth_device_name_string) { ByteArray bluetooth_device_name_bytes = Base64Utils::Decode(bluetooth_device_name_string); - if (bluetooth_device_name_bytes.Empty()) { - NEARBY_LOG( - INFO, - "Cannot deserialize BluetoothDeviceName: failed Base64 decoding of %s", - std::string(bluetooth_device_name_string).c_str()); return; } diff --git a/cpp/platform/public/ble.cc b/cpp/platform/public/ble.cc index 2ebe0c95..230554d0 100644 --- a/cpp/platform/public/ble.cc +++ b/cpp/platform/public/ble.cc @@ -39,9 +39,6 @@ bool BleMedium::StartScanning( auto& context = *pair.first->second; if (pair.second) { context.peripheral = BlePeripheral(&peripheral); - NEARBY_LOG(INFO, - "Discovered peripheral '%s'", - peripheral.GetName().c_str()); discovered_peripheral_callback_.peripheral_discovered_cb( context.peripheral, service_id, context.peripheral.GetAdvertisementBytes(service_id),