diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-06-17 16:13:11 -0600 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-06-17 16:13:11 -0600 |
commit | ef721fa41dec064cc562c6ecf028faa81d78a3d2 (patch) | |
tree | 87915378a4624f500f2b2ef54be5c27c0eb1db20 /subsonic-android | |
parent | 9838cfeff21519445c654f69c545037265d837b9 (diff) | |
download | dsub-ef721fa41dec064cc562c6ecf028faa81d78a3d2.tar.gz dsub-ef721fa41dec064cc562c6ecf028faa81d78a3d2.tar.bz2 dsub-ef721fa41dec064cc562c6ecf028faa81d78a3d2.zip |
Only log redirection when one actually occurs
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java index 0edd1a6d..513ce16a 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -1090,7 +1090,9 @@ public class RESTMusicService implements MusicService { redirectFrom = originalUrl.substring(0, originalUrl.indexOf("/rest/")); redirectTo = redirectedUrl.substring(0, redirectedUrl.indexOf("/rest/")); - Log.i(TAG, redirectFrom + " redirects to " + redirectTo); + if(redirectFrom.compareTo(redirectTo) != 0) { + Log.i(TAG, redirectFrom + " redirects to " + redirectTo); + } redirectionLastChecked = System.currentTimeMillis(); redirectionNetworkType = getCurrentNetworkType(context); } |