better logging in get_response

also, changed the log output in got_data from %s to %r to escape control characters in log output.