Log the failure to get RF service

PiperOrigin-RevId: 567017321
This commit is contained in:
Guogang Li
2023-09-20 10:58:17 -07:00
committed by Copybara-Service
parent 6adba4c2f8
commit 1e5587e2db
@@ -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: "