From 1e5587e2db3f332aaaee656c27d1efac1fecb7a7 Mon Sep 17 00:00:00 2001 From: Guogang Li Date: Wed, 20 Sep 2023 10:57:29 -0700 Subject: [PATCH] Log the failure to get RF service PiperOrigin-RevId: 567017321 --- .../implementation/windows/bluetooth_classic_device.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/platform/implementation/windows/bluetooth_classic_device.cc b/internal/platform/implementation/windows/bluetooth_classic_device.cc index 707ebd62..699aa1fa 100644 --- a/internal/platform/implementation/windows/bluetooth_classic_device.cc +++ b/internal/platform/implementation/windows/bluetooth_classic_device.cc @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2020-2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -117,6 +117,9 @@ RfcommDeviceService BluetoothDevice::GetRfcommServiceForIdAsync( } } + NEARBY_LOGS(ERROR) + << __func__ + << ": Failed to get RfcommDeviceService due to no any services."; return nullptr; } catch (std::exception exception) { NEARBY_LOGS(ERROR) << __func__ << ": Failed to get RfcommDeviceService: "