diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-11-01 15:41:12 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-11-01 15:41:12 -0700 |
commit | ccc585a4c3468c7ec7e1ad83da8a8c8f0c1743db (patch) | |
tree | 2ddafc70901613a107f1db8a16bd6fd01ea6418d /src/github/daneren2005 | |
parent | e537320af8d34f2256527d64a86007b129370889 (diff) | |
download | dsub-ccc585a4c3468c7ec7e1ad83da8a8c8f0c1743db.tar.gz dsub-ccc585a4c3468c7ec7e1ad83da8a8c8f0c1743db.tar.bz2 dsub-ccc585a4c3468c7ec7e1ad83da8a8c8f0c1743db.zip |
Print stack trace of error when failing to rename
Needed to track down a issue with the renaming process
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadFile.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadFile.java b/src/github/daneren2005/dsub/service/DownloadFile.java index 40e11e9e..c2cffdef 100644 --- a/src/github/daneren2005/dsub/service/DownloadFile.java +++ b/src/github/daneren2005/dsub/service/DownloadFile.java @@ -217,7 +217,7 @@ public class DownloadFile { completeWhenDone = false; } } catch(IOException ex) { - Log.w(TAG, "Failed to rename file " + completeFile + " to " + saveFile); + Log.w(TAG, "Failed to rename file " + completeFile + " to " + saveFile, ex); } this.isPlaying = isPlaying; @@ -226,7 +226,7 @@ public class DownloadFile { try { Util.renameFile(partialFile, completeFile); } catch(IOException ex) { - Log.w(TAG, "Failed to rename file " + partialFile + " to " + completeFile); + Log.w(TAG, "Failed to rename file " + partialFile + " to " + completeFile, ex); } } public boolean getPlaying() { |