Use Log.w(String, String, Throwable tr) instead of Log.w(String, String)

Use Log.w(String, String, Throwable tr) instead of Log.w(String, String)
to give a bit better performance.

Bug: 160931064
Test: manual verification
Change-Id: I3622f306f706f1cb327c4d974b678b700a1d1d20
This commit is contained in:
lpeter
2020-07-10 18:00:29 +08:00
parent e9a117eb85
commit ba98170eff

View File

@@ -152,7 +152,7 @@ class InlineSuggestionSession {
try {
mCallback.onInlineSuggestionsSessionInvalidated();
} catch (RemoteException e) {
Log.w(TAG, "onInlineSuggestionsSessionInvalidated() remote exception:" + e);
Log.w(TAG, "onInlineSuggestionsSessionInvalidated() remote exception", e);
}
if (mResponseCallback != null) {
consumeInlineSuggestionsResponse(EMPTY_RESPONSE);