From 3b7c3c6b551b95c58849e40b53b01d38714bb782 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 7 Aug 2009 13:44:09 -0700 Subject: [PATCH] Added lightweight exception logging to AsyncQueryHandler. Without this, it's really hard to debug exceptions coming over from a ContentProvider. This is lightweight logging that is only triggered by an exception, and doesn't write a full stacktrace. --- core/java/android/content/AsyncQueryHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/content/AsyncQueryHandler.java b/core/java/android/content/AsyncQueryHandler.java index ac851ccbcc211..c5606ac530f3c 100644 --- a/core/java/android/content/AsyncQueryHandler.java +++ b/core/java/android/content/AsyncQueryHandler.java @@ -85,6 +85,7 @@ public abstract class AsyncQueryHandler extends Handler { cursor.getCount(); } } catch (Exception e) { + Log.d(TAG, e.toString()); cursor = null; }