Only log in debug builds. Replace Apache client with HttpUrlConnection.