diff options
author | Vasu Nori <vnori@google.com> | 2011-01-10 15:01:49 -0800 |
---|---|---|
committer | Vasu Nori <vnori@google.com> | 2011-01-10 16:14:59 -0800 |
commit | ead1b057d86021f4f0a44bad8616ddae2aa39a40 (patch) | |
tree | 04ef33c1683b9b3ba69e68ee85903df4ef44254b /src | |
parent | c0f732bad06924bc4ef1652ace35d9b0ffc93e2e (diff) | |
download | android_packages_providers_DownloadProvider-ead1b057d86021f4f0a44bad8616ddae2aa39a40.tar.gz android_packages_providers_DownloadProvider-ead1b057d86021f4f0a44bad8616ddae2aa39a40.tar.bz2 android_packages_providers_DownloadProvider-ead1b057d86021f4f0a44bad8616ddae2aa39a40.zip |
bug:3338089 print better error msg in DownloadThread when exception occurs
when download thread gets an exception and aborts a download, print
the stacktrace of the exception - so one can debug the problem.
Change-Id: Iab1bae3b6180d8601e84020453ff35815ae3e69f
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/providers/downloads/DownloadThread.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index fefbe1d8..8b8d8bd1 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -180,11 +180,8 @@ public class DownloadThread extends Thread { // fall through to finally block } catch (Throwable ex) { //sometimes the socket code throws unchecked exceptions errorMsg = "Exception for id " + mInfo.mId + ": " + ex.getMessage(); - Log.w(Constants.TAG, errorMsg); + Log.w(Constants.TAG, errorMsg, ex); finalStatus = Downloads.Impl.STATUS_UNKNOWN_ERROR; - if (Constants.LOGV) { - Log.w(Constants.TAG, errorMsg, ex); - } // falls through to the code that reports an error } finally { if (wakeLock != null) { |