diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-03-25 11:48:33 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-03-25 11:48:33 -0700 |
commit | 3519b29d8406d796b4d5318c62d6bf6f34d86c40 (patch) | |
tree | 0b55b93326918410ca57a5383df8e8c651c870d9 /subsonic-android | |
parent | 08d473e34b9b56824f78bbfe90568e531f733107 (diff) | |
download | dsub-3519b29d8406d796b4d5318c62d6bf6f34d86c40.tar.gz dsub-3519b29d8406d796b4d5318c62d6bf6f34d86c40.tar.bz2 dsub-3519b29d8406d796b4d5318c62d6bf6f34d86c40.zip |
Added some logging information
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java b/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java index 8407fa12..16a4dc3e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java @@ -148,6 +148,7 @@ public class StreamProxy implements Runnable { return false;
}
+ Log.i(TAG, "Processing request for file " + localPath);
File file = new File(localPath);
if (!file.exists()) {
Log.e(TAG, "File " + localPath + " does not exist");
@@ -159,6 +160,7 @@ public class StreamProxy implements Runnable { @Override
protected Integer doInBackground(String... params) {
+ Log.i(TAG, "Streaming song in background");
DownloadFile downloadFile = downloadService.getCurrentPlaying();
MusicDirectory.Entry song = downloadFile.getSong();
long fileSize = downloadFile.getBitRate() * ((song.getDuration() != null) ? song.getDuration() : 0) * 1000 / 8;
@@ -243,4 +245,4 @@ public class StreamProxy implements Runnable { return 1;
}
}
-} +}
|