Skip to content

Commit

Permalink
Merge pull request #8 from w-shackleton/log
Browse files Browse the repository at this point in the history
Removed a few log calls
  • Loading branch information
w-shackleton committed May 17, 2014
2 parents 6e32ad8 + b43c0e9 commit 37f2f3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/uk/digitalsquid/netspoofer/proxy/NSProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ protected int doInBackground(StartParams params) {
request.getHeader("Content-Length").get(0));
request.readAllContent(input, len);
}
Log.d(TAG, "Connection header parsed:");
Log.v(TAG, request.toString());

// Filter annoying requests
if(!filterRequest(request)) return 1;
Expand All @@ -163,12 +161,9 @@ protected int doInBackground(StartParams params) {

// Execute
try {
Log.d(TAG, "Sending request");
HttpResponse response = executeRequest(request);
Log.d(TAG, "Response received");
if(!whitelistRequest(request))
manipulateResponse(response, request);
Log.d(TAG, "Response manipulated");
output.write(String.format("HTTP/1.1 %d %s\r\n",
response.getResponseCode(),
response.getResponseMessage()).getBytes());
Expand Down
1 change: 0 additions & 1 deletion src/uk/digitalsquid/netspoofer/spoofs/ImageSpoof.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ public void modifyResponse(HttpResponse response,
Log.v(TAG, "Failed to decode image");
return; // Failed to decode
}
Log.v(TAG, "Manipulating image");
// Now it's decoded, unset in response to allow GC to work
response.clearContent();

Expand Down

0 comments on commit 37f2f3d

Please sign in to comment.