aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-17 21:19:03 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-17 21:19:03 -0700
commit2a39e12ba2c0b9acac81f68f54e0f4be001d03e1 (patch)
tree69e334423e3fd22464d623513dedaba3c73b1bbd /subsonic-android
parentba3227ca9dc8fdfdc30883728e49d5804c33c11c (diff)
parent364e0ba02e3344025ba174f73af303c6f777975f (diff)
downloaddsub-2a39e12ba2c0b9acac81f68f54e0f4be001d03e1.tar.gz
dsub-2a39e12ba2c0b9acac81f68f54e0f4be001d03e1.tar.bz2
dsub-2a39e12ba2c0b9acac81f68f54e0f4be001d03e1.zip
Merge branch 'master' of https://github.com/daneren2005/Subsonic.git
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java7
1 files changed, 5 insertions, 2 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..ee8a384c 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -982,7 +982,8 @@ public class RESTMusicService implements MusicService {
private HttpResponse executeWithRetry(Context context, String url, String originalUrl, HttpParams requestParams,
List<String> parameterNames, List<Object> parameterValues,
List<Header> headers, ProgressListener progressListener, CancellableTask task) throws IOException {
- Log.i(TAG, "Using URL " + url);
+ // Strip out sensitive information from log
+ Log.i(TAG, "Using URL " + url.substring(0, url.indexOf("?u=") + 1) + url.substring(url.indexOf("&v=") + 1));
SharedPreferences prefs = Util.getPreferences(context);
int networkTimeout = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_NETWORK_TIMEOUT, "15000"));
@@ -1090,7 +1091,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);
}