log url when response code isn't 200

This commit is contained in:
Eric House 2017-11-13 08:17:26 -08:00
parent 8d99ddee7d
commit 2879055ca9

View file

@ -334,7 +334,8 @@ public class NetUtils {
} }
result = new String( bas.toByteArray() ); result = new String( bas.toByteArray() );
} else { } else {
Log.w( TAG, "runConn: responseCode: %d", responseCode ); Log.w( TAG, "runConn: responseCode: %d for url: %s",
responseCode, conn.getURL() );
} }
} catch ( java.net.ProtocolException pe ) { } catch ( java.net.ProtocolException pe ) {
Log.ex( TAG, pe ); Log.ex( TAG, pe );