Merge "CalendarProvider2: log failures to get the cached calling package." into nyc-dev
diff --git a/src/com/android/providers/calendar/SQLiteContentProvider.java b/src/com/android/providers/calendar/SQLiteContentProvider.java
index 01afb23..53fc7e7 100644
--- a/src/com/android/providers/calendar/SQLiteContentProvider.java
+++ b/src/com/android/providers/calendar/SQLiteContentProvider.java
@@ -29,6 +29,7 @@
 import android.os.Binder;
 import android.os.Process;
 import android.provider.CalendarContract;
+import android.util.Log;
 
 import java.util.ArrayList;
 
@@ -304,8 +305,7 @@
                 String callingPackage = getCallingPackage();
                 mCallingPackage.set(callingPackage);
             } catch (SecurityException e) {
-                // If this exception is thrown, clearCallingIdentity has already been called, and
-                // calling package is already available.
+                Log.e(TAG, "Error getting the calling package.", e);
             }
         }