summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Grace Jia <xiaotonj@google.com> 2021-05-10 23:17:36 -0700
committer Grace Jia <xiaotonj@google.com> 2021-05-11 06:12:01 -0700
commit6caf1e22d07342eb4b7adb6bd7f89356673f5a10 (patch)
tree7bfc66c38ec5a5d87b4c11272fd67abaaab7de61
parent0f314d689f962af287d82ded413846cd5afc788c (diff)
Add error log of addConnetionService in RemoteConnectionManager.
There's UnsupportedOperationException in RemoteConnectionManager which means sometimes we can't find corresponding ConnectionService and we can't find the root cause of this. Try to print more log if there's RemoteException when we add ConnectionService. Bug: 175466894 Test: Manual test Change-Id: Ia34cf8777c17c3eb45476018125d9b92db391e28
-rw-r--r--telecomm/java/android/telecom/RemoteConnectionManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/RemoteConnectionManager.java b/telecomm/java/android/telecom/RemoteConnectionManager.java
index f3c7bd83ed4b..fbbfefd9d00e 100644
--- a/telecomm/java/android/telecom/RemoteConnectionManager.java
+++ b/telecomm/java/android/telecom/RemoteConnectionManager.java
@@ -45,7 +45,10 @@ public class RemoteConnectionManager {
outgoingConnectionServiceRpc,
mOurConnectionServiceImpl);
mRemoteConnectionServices.put(componentName, remoteConnectionService);
- } catch (RemoteException ignored) {
+ } catch (RemoteException e) {
+ Log.w(RemoteConnectionManager.this,
+ "error when addConnectionService of %s: %s", componentName,
+ e.toString());
}
}
}