Log ServiceEntitlementException in EapAkaHelper.getEapAkaResponse am: 379684e8ab

Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/service_entitlement/+/1871748

Change-Id: Ie246519ef94fc3a7f46cd69851e4e8ead35f978f
diff --git a/java/com/android/libraries/entitlement/EapAkaHelper.java b/java/com/android/libraries/entitlement/EapAkaHelper.java
index 3db48e1..e5af73e 100644
--- a/java/com/android/libraries/entitlement/EapAkaHelper.java
+++ b/java/com/android/libraries/entitlement/EapAkaHelper.java
@@ -20,6 +20,7 @@
 
 import android.content.Context;
 import android.telephony.TelephonyManager;
+import android.util.Log;
 
 import androidx.annotation.Nullable;
 
@@ -31,6 +32,8 @@
  * helpful to other apps.
  */
 public class EapAkaHelper {
+    private static final String TAG = "ServiceEntitlement";
+
     private final Context mContext;
     private final int mSimSubscriptionId;
 
@@ -103,6 +106,7 @@
             return new EapAkaResponse(
                     eapAkaResponse.response(), eapAkaResponse.synchronizationFailureResponse());
         } catch (ServiceEntitlementException e) {
+            Log.i(TAG, "Failed to generate EAP-AKA response", e);
             return null;
         }
     }