diff options
author | Vasu Nori <vnori@google.com> | 2011-01-10 16:18:26 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-10 16:18:26 -0800 |
commit | 54df379ddfe81c54c689a73834948d319fc28fad (patch) | |
tree | 04ef33c1683b9b3ba69e68ee85903df4ef44254b | |
parent | be32b5a6f3b73b642672b59e6ceb4115c361f029 (diff) | |
parent | ead1b057d86021f4f0a44bad8616ddae2aa39a40 (diff) | |
download | android_packages_providers_DownloadProvider-54df379ddfe81c54c689a73834948d319fc28fad.tar.gz android_packages_providers_DownloadProvider-54df379ddfe81c54c689a73834948d319fc28fad.tar.bz2 android_packages_providers_DownloadProvider-54df379ddfe81c54c689a73834948d319fc28fad.zip |
am ead1b057: bug:3338089 print better error msg in DownloadThread when exception occurs
* commit 'ead1b057d86021f4f0a44bad8616ddae2aa39a40':
bug:3338089 print better error msg in DownloadThread when exception occurs
-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) { |